#662FBD#662FBD
#662FBD is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.5% C 0.205 H 294.6°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).
Color values
| HEX | #662FBD |
|---|---|
| RGB | rgb(102, 47, 189) |
| HSL | hsl(263, 60%, 46%) |
| HSV | hsv(263, 75%, 74%) |
| CMYK | cmyk(46%, 75.1%, 0%, 25.9%) |
| CIE-LAB | lab(35.07, 54.10, -65.17) |
| CIE-LCH | lch(35.07, 84.70, 309.70°) |
| OKLab | oklab(46.46% 0.0856 -0.1868) |
| OKLCH | oklch(46.46% 0.205 294.6) |
| XYZ | xyz(15.6788, 8.5315, 48.9549) |
| Luminance | 0.0853 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple Blue
#5D21D0
ΔE00 3.36
Blurple
#5539CC
ΔE00 4.02
Bluey Purple
#6241C7
ΔE00 4.32
Blue With A Hint Of Purple
#533CC6
ΔE00 4.35
Burple
#6832E3
ΔE00 5.17
Violet Blue
#510AC9
ΔE00 5.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#662FBD #86BD2F
analogous
#2F3FBD #662FBD #AD2FBD
triadic
#662FBD #BD662F #2FBD66
tetradic
#662FBD #BD2F3F #86BD2F #2FBDAD
square
#662FBD #BD2F3F #86BD2F #2FBDAD
split-complementary
#662FBD #BDAD2F #3FBD2F
monochromatic
#31175B #4C238C #662FBD #8655D5 #A986E1
Accessibility & contrast
On white
7.76
#662FBD on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.71
#662FBD on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #662FBD
7.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##662FBD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##662FBD | 1.00 | 7.76 | 2.71 | 7.76 |
| #FFFFFF | 7.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054C1
Deuteranopia (green-blind)
#0050BA
Tritanopia (blue-blind)
#4D5574
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #662fbd; /* rgb */ color: rgb(102, 47, 189); /* oklch */ color: oklch(46.5% 0.205 294.6);
Tailwind
colors: {
custom: {
50: '#9a6dd2',
500: '#662fbd',
950: '#000000',
},
}SCSS
$custom: #662fbd; $custom-light: #9a6dd2; $custom-dark: #000000;
JSON
{
"hex": "#662fbd",
"rgb": {
"r": 102,
"g": 47,
"b": 189
},
"hsl": {
"h": 263.239,
"s": 60.169,
"l": 46.275
},
"oklch": {
"l": 0.46458,
"c": 0.20548,
"h": 294.6
},
"luminance": 0.08532
}Semantic roles & 50–950 ramp
primary
#662FBD
secondary
#ADCA7E
accent
#E344A6
background
#FAF6FD
surface
#F3ECFA
border
#CDC7D3
text
#0F0714
muted
#7F7A83