#662497#662497
#662497 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.1% C 0.177 H 306.2°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).
Color values
| HEX | #662497 |
|---|---|
| RGB | rgb(102, 36, 151) |
| HSL | hsl(274, 61%, 37%) |
| HSV | hsv(274, 76%, 59%) |
| CMYK | cmyk(32.5%, 76.2%, 0%, 40.8%) |
| CIE-LAB | lab(30.21, 49.52, -50.29) |
| CIE-LCH | lch(30.21, 70.58, 314.55°) |
| OKLab | oklab(42.06% 0.1045 -0.143) |
| OKLCH | oklch(42.06% 0.177 306.2) |
| XYZ | xyz(11.6951, 6.3210, 29.8761) |
| Luminance | 0.0632 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.01
Purple (survey)
#7E1E9C
ΔE00 4.44
Indigo
#4B0082
ΔE00 7.20
Purple
#800080
ΔE00 7.98
Violet Blue
#510AC9
ΔE00 8.29
Darkmagenta
#8B008B
ΔE00 8.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#662497 #559724
analogous
#2D2497 #662497 #97248F
triadic
#662497 #976624 #249766
tetradic
#662497 #972D24 #559724 #248F97
square
#662497 #972D24 #559724 #248F97
split-complementary
#662497 #8F9724 #24972D
monochromatic
#230C34 #451866 #662497 #8730C8 #A45DD8
Accessibility & contrast
On white
9.27
#662497 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.26
#662497 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #662497
9.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##662497 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##662497 | 1.00 | 9.27 | 2.26 | 9.27 |
| #FFFFFF | 9.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#5D405C
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #662497; /* rgb */ color: rgb(102, 36, 151); /* oklch */ color: oklch(42.1% 0.177 306.2);
Tailwind
colors: {
custom: {
50: '#9666b6',
500: '#662497',
950: '#000000',
},
}SCSS
$custom: #662497; $custom-light: #9666b6; $custom-dark: #000000;
JSON
{
"hex": "#662497",
"rgb": {
"r": 102,
"g": 36,
"b": 151
},
"hsl": {
"h": 274.435,
"s": 61.497,
"l": 36.667
},
"oklch": {
"l": 0.4206,
"c": 0.17715,
"h": 306.2
},
"luminance": 0.06321
}Semantic roles & 50–950 ramp
primary
#662497
secondary
#84BD5A
accent
#E54388
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80