#662897#662897
#662897 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.5% C 0.172 H 305.7°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).
Color values
| HEX | #662897 |
|---|---|
| RGB | rgb(102, 40, 151) |
| HSL | hsl(274, 58%, 37%) |
| HSV | hsv(274, 74%, 59%) |
| CMYK | cmyk(32.5%, 73.5%, 0%, 40.8%) |
| CIE-LAB | lab(30.82, 47.77, -49.29) |
| CIE-LCH | lch(30.82, 68.64, 314.10°) |
| OKLab | oklab(42.5% 0.1006 -0.1401) |
| OKLCH | oklch(42.5% 0.172 305.7) |
| XYZ | xyz(11.8230, 6.5768, 29.9188) |
| Luminance | 0.0658 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 2.30
Purple (survey)
#7E1E9C
ΔE00 4.51
Indigo
#4B0082
ΔE00 7.73
Purple
#800080
ΔE00 8.23
Purple Blue
#5D21D0
ΔE00 8.42
Darkmagenta
#8B008B
ΔE00 8.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#662897 #599728
analogous
#2F2897 #662897 #972890
triadic
#662897 #976628 #289766
tetradic
#662897 #972F28 #599728 #289097
square
#662897 #972F28 #599728 #289097
split-complementary
#662897 #909728 #28972F
monochromatic
#250E36 #451B67 #662897 #8735C7 #A364D6
Accessibility & contrast
On white
9.07
#662897 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.32
#662897 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #662897
9.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##662897 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##662897 | 1.00 | 9.07 | 2.32 | 9.07 |
| #FFFFFF | 9.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#004995
Tritanopia (blue-blind)
#5D425D
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #662897; /* rgb */ color: rgb(102, 40, 151); /* oklch */ color: oklch(42.5% 0.172 305.7);
Tailwind
colors: {
custom: {
50: '#9668b6',
500: '#662897',
950: '#000000',
},
}SCSS
$custom: #662897; $custom-light: #9668b6; $custom-dark: #000000;
JSON
{
"hex": "#662897",
"rgb": {
"r": 102,
"g": 40,
"b": 151
},
"hsl": {
"h": 273.514,
"s": 58.115,
"l": 37.451
},
"oklch": {
"l": 0.42495,
"c": 0.17248,
"h": 305.7
},
"luminance": 0.06577
}Semantic roles & 50–950 ramp
primary
#662897
secondary
#88BC5F
accent
#E1468B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80