#42209C#42209C
#42209C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.184 H 286.3°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).
Color values
| HEX | #42209C |
|---|---|
| RGB | rgb(66, 32, 156) |
| HSL | hsl(256, 66%, 37%) |
| HSV | hsv(256, 79%, 61%) |
| CMYK | cmyk(57.7%, 79.5%, 0%, 38.8%) |
| CIE-LAB | lab(25.54, 46.83, -61.18) |
| CIE-LCH | lch(25.54, 77.05, 307.44°) |
| OKLab | oklab(37.92% 0.0516 -0.1762) |
| OKLCH | oklch(37.92% 0.184 286.3) |
| XYZ | xyz(8.7622, 4.5911, 31.8705) |
| Luminance | 0.0459 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.16
Ultramarine
#2000B1
ΔE00 5.42
Royal
#0C1793
ΔE00 5.52
Cobalt Blue
#030AA7
ΔE00 5.72
Indigo (survey)
#380282
ΔE00 5.91
Royal Blue (survey)
#0504AA
ΔE00 5.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42209C #7A9C20
analogous
#203C9C #42209C #80209C
triadic
#42209C #9C4220 #209C42
tetradic
#42209C #9C203C #7A9C20 #209C80
square
#42209C #9C203C #7A9C20 #209C80
split-complementary
#42209C #9C8020 #3C9C20
monochromatic
#170B36 #2D1669 #42209C #572ACF #7D59DD
Accessibility & contrast
On white
10.95
#42209C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.92
#42209C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42209C
10.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42209C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42209C | 1.00 | 10.95 | 1.92 | 10.95 |
| #FFFFFF | 10.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00409F
Deuteranopia (green-blind)
#00399A
Tritanopia (blue-blind)
#16445E
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #42209c; /* rgb */ color: rgb(66, 32, 156); /* oklch */ color: oklch(37.9% 0.184 286.3);
Tailwind
colors: {
custom: {
50: '#8160ba',
500: '#42209c',
950: '#000000',
},
}SCSS
$custom: #42209c; $custom-light: #8160ba; $custom-dark: #000000;
JSON
{
"hex": "#42209c",
"rgb": {
"r": 66,
"g": 32,
"b": 156
},
"hsl": {
"h": 256.452,
"s": 65.957,
"l": 36.863
},
"oklch": {
"l": 0.37923,
"c": 0.18358,
"h": 286.3
},
"luminance": 0.04592
}Semantic roles & 50–950 ramp
primary
#42209C
secondary
#A4C157
accent
#E93FBA
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0512
muted
#7D7981