#645F98 color
The hex color #645F98 is a grayish blue.
In the RGB color model it is made of 39.2% red, 37.3% green and 59.6% blue (100, 95, 152).
Its hue angle is 245°, with 23% saturation and 48% lightness. For print, the CMYK equivalent is 34% cyan, 38% magenta, 0% yellow and 40% black.
The closest named color is Wizard’s Potion (#5D6098), a difference of 2.1 ΔE, a small difference.
White text is the more readable choice on this background (contrast 5.78:1).
#645F98 color codes
| HEX | #645F98 | |
|---|---|---|
| RGB | rgb(100, 95, 152) | |
| RGB percent | rgb(39.2%, 37.3%, 59.6%) | |
| HSL | hsl(245, 23%, 48%) | |
| HSV / HSB | hsv(245, 38%, 60%) | |
| CMYK | cmyk(34%, 38%, 0%, 40%) | |
| CIE LAB | lab(43, 15.96, -30.47) | |
| CIE LCH | lch(43, 34.4, 297.64) | |
| CIE XYZ | xyz(15.014, 13.16, 31.449) | |
| Decimal | 6578072 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #645F98, based on their position on the color wheel.
Complementary
The color opposite on the color wheel (180°). Strongest contrast.
Analogous
Neighbors 30° either side. Calm, natural combinations.
Split complementary
The two colors next to the complement (150° and 210°).
Triadic
Three colors evenly spaced, 120° apart.
Tetradic (square)
Four colors 90° apart.
Shades, tints and tones
Shades (darker, mixed with black)
Tints (lighter, mixed with white)
Tones (mixed with gray)
Contrast and accessibility
| Text on #645F98 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 3.63:1 | Fail | Fail | Pass |
| Sample text | 5.78:1 | Pass | Fail | Pass |
| #645F98 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 5.78:1 | Pass | Fail | Pass |
| Sample text | 3.63:1 | Fail | Fail | Pass |
WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.
Color blindness simulation
How #645F98 looks to people with the most common types of color vision deficiency.
#4e679aProtanopia
no red cones#4d6497Deuteranopia
no green cones#576a74Tritanopia
no blue cones#666666Achromatopsia
no color vision
CSS examples
.background { background-color: #645f98; }
.text { color: #645f98; }
.border { border: 2px solid #645f98; }
.transparent { background-color: rgb(100 95 152 / 50%); }
.gradient { background: linear-gradient(to right, #645f98, #815f98); }
Similar colors
#5d6098Wizard’s Potion#6f63a0Scampi#51588ePiccadilly Purple#6f5698Passion Flower#6f58a6Prophet Violet#5d66aaBellflower#655883Berry Jam#636ca8Twinkle Night
Closest common color name: Royal Purple.
Questions
- What color is #645F98?
- #645F98 is a grayish blue, closest to the named color Wizard’s Potion. It belongs to the blue family of colors.
- What is the RGB value of #645F98?
- The RGB value is 100, 95, 152: 100 red, 95 green and 152 blue on a 0 to 255 scale.
- What is the complementary color of #645F98?
- The complementary color is #93985F, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #645F98?
- White text. Black text has a contrast ratio of 3.63:1 and white text 5.78:1. WCAG asks for at least 4.5:1 for normal text.