#662FBC#662FBC
#662FBC is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.4% C 0.204 H 294.8°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).
Color values
| HEX | #662FBC |
|---|---|
| RGB | rgb(102, 47, 188) |
| HSL | hsl(263, 60%, 46%) |
| HSV | hsv(263, 75%, 74%) |
| CMYK | cmyk(45.7%, 75%, 0%, 26.3%) |
| CIE-LAB | lab(34.98, 53.85, -64.73) |
| CIE-LCH | lch(34.98, 84.19, 309.76°) |
| OKLab | oklab(46.37% 0.0859 -0.1855) |
| OKLCH | oklch(46.37% 0.204 294.8) |
| XYZ | xyz(15.5706, 8.4882, 48.3852) |
| Luminance | 0.0849 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple Blue
#5D21D0
ΔE00 3.45
Blurple
#5539CC
ΔE00 4.11
Bluey Purple
#6241C7
ΔE00 4.39
Blue With A Hint Of Purple
#533CC6
ΔE00 4.42
Burple
#6832E3
ΔE00 5.31
Rebeccapurple
#663399
ΔE00 5.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#662FBC #85BC2F
analogous
#2F3FBC #662FBC #AC2FBC
triadic
#662FBC #BC662F #2FBC66
tetradic
#662FBC #BC2F3F #85BC2F #2FBCAC
square
#662FBC #BC2F3F #85BC2F #2FBCAC
split-complementary
#662FBC #BCAC2F #3FBC2F
monochromatic
#31175A #4B238B #662FBC #8654D4 #A985E0
Accessibility & contrast
On white
7.78
#662FBC on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.70
#662FBC on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #662FBC
7.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##662FBC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##662FBC | 1.00 | 7.78 | 2.70 | 7.78 |
| #FFFFFF | 7.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053C0
Deuteranopia (green-blind)
#0050B9
Tritanopia (blue-blind)
#4D5574
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #662fbc; /* rgb */ color: rgb(102, 47, 188); /* oklch */ color: oklch(46.4% 0.204 294.8);
Tailwind
colors: {
custom: {
50: '#9a6dd1',
500: '#662fbc',
950: '#000000',
},
}SCSS
$custom: #662fbc; $custom-light: #9a6dd1; $custom-dark: #000000;
JSON
{
"hex": "#662fbc",
"rgb": {
"r": 102,
"g": 47,
"b": 188
},
"hsl": {
"h": 263.404,
"s": 60,
"l": 46.078
},
"oklch": {
"l": 0.46371,
"c": 0.2044,
"h": 294.8
},
"luminance": 0.08489
}Semantic roles & 50–950 ramp
primary
#662FBC
secondary
#ACCA7D
accent
#E345A5
background
#FAF6FD
surface
#F3ECFA
border
#CDC7D3
text
#0F0714
muted
#7F7A83