#662FAC#662FAC
#662FAC is a mid, vivid violet. Relative luminance 0.078; OKLCH L 45.0% C 0.187 H 298.6°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).
Color values
| HEX | #662FAC |
|---|---|
| RGB | rgb(102, 47, 172) |
| HSL | hsl(266, 57%, 43%) |
| HSV | hsv(266, 73%, 67%) |
| CMYK | cmyk(40.7%, 72.7%, 0%, 32.5%) |
| CIE-LAB | lab(33.64, 49.72, -57.42) |
| CIE-LCH | lch(33.64, 75.95, 310.89°) |
| OKLab | oklab(45.01% 0.0895 -0.164) |
| OKLCH | oklch(45.01% 0.187 298.6) |
| XYZ | xyz(13.9405, 7.8362, 39.7998) |
| Luminance | 0.0784 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.26
Purple Blue
#5D21D0
ΔE00 5.40
Bluey Purple
#6241C7
ΔE00 5.93
Blue With A Hint Of Purple
#533CC6
ΔE00 5.97
Blurple
#5539CC
ΔE00 5.99
Purple (survey)
#7E1E9C
ΔE00 6.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#662FAC #75AC2F
analogous
#2F36AC #662FAC #A42FAC
triadic
#662FAC #AC662F #2FAC66
tetradic
#662FAC #AC2F36 #75AC2F #2FACA4
square
#662FAC #AC2F36 #75AC2F #2FACA4
split-complementary
#662FAC #ACA42F #36AC2F
monochromatic
#2D154C #49227C #662FAC #844BCE #A57BDB
Accessibility & contrast
On white
8.18
#662FAC on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.57
#662FAC on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #662FAC
8.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##662FAC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##662FAC | 1.00 | 8.18 | 2.57 | 8.18 |
| #FFFFFF | 8.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FB0
Deuteranopia (green-blind)
#004EA9
Tritanopia (blue-blind)
#554E6B
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #662fac; /* rgb */ color: rgb(102, 47, 172); /* oklch */ color: oklch(45.0% 0.187 298.6);
Tailwind
colors: {
custom: {
50: '#986dc6',
500: '#662fac',
950: '#000000',
},
}SCSS
$custom: #662fac; $custom-light: #986dc6; $custom-dark: #000000;
JSON
{
"hex": "#662fac",
"rgb": {
"r": 102,
"g": 47,
"b": 172
},
"hsl": {
"h": 266.4,
"s": 57.078,
"l": 42.941
},
"oklch": {
"l": 0.4501,
"c": 0.18687,
"h": 298.6
},
"luminance": 0.07836
}Semantic roles & 50–950 ramp
primary
#662FAC
secondary
#A0C374
accent
#E0479D
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82