#42226F#42226F
#42226F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.0% C 0.127 H 298.5°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).
Color values
| HEX | #42226F |
|---|---|
| RGB | rgb(66, 34, 111) |
| HSL | hsl(265, 53%, 28%) |
| HSV | hsv(265, 69%, 44%) |
| CMYK | cmyk(40.5%, 69.4%, 0%, 56.5%) |
| CIE-LAB | lab(21.76, 32.80, -39.10) |
| CIE-LCH | lch(21.76, 51.03, 309.99°) |
| OKLab | oklab(33.98% 0.0604 -0.1114) |
| OKLCH | oklch(33.98% 0.127 298.5) |
| XYZ | xyz(5.6873, 3.4499, 15.4021) |
| Luminance | 0.0345 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 5.87
Indigo
#4B0082
ΔE00 6.39
Indigo (survey)
#380282
ΔE00 6.94
Midnight Blue
#191970
ΔE00 6.96
Dark Indigo
#1F0954
ΔE00 7.89
Darkslateblue
#483D8B
ΔE00 8.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42226F #4F6F22
analogous
#22286F #42226F #68226F
triadic
#42226F #6F4222 #226F42
tetradic
#42226F #6F2228 #4F6F22 #226F68
square
#42226F #6F2228 #4F6F22 #226F68
split-complementary
#42226F #6F6822 #286F22
monochromatic
#0E0717 #261440 #42226F #5E309E #7B45C6
Accessibility & contrast
On white
12.43
#42226F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#42226F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42226F
12.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42226F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42226F | 1.00 | 12.43 | 1.69 | 12.43 |
| #FFFFFF | 12.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#00336D
Tritanopia (blue-blind)
#373445
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #42226f; /* rgb */ color: rgb(66, 34, 111); /* oklch */ color: oklch(34.0% 0.127 298.5);
Tailwind
colors: {
custom: {
50: '#7a5f99',
500: '#42226f',
950: '#000000',
},
}SCSS
$custom: #42226f; $custom-light: #7a5f99; $custom-dark: #000000;
JSON
{
"hex": "#42226f",
"rgb": {
"r": 66,
"g": 34,
"b": 111
},
"hsl": {
"h": 264.935,
"s": 53.103,
"l": 28.431
},
"oklch": {
"l": 0.33984,
"c": 0.12677,
"h": 298.5
},
"luminance": 0.0345
}Semantic roles & 50–950 ramp
primary
#42226F
secondary
#7EA24A
accent
#DD4BA0
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050E
muted
#7C797E