#4F238A#4F238A
#4F238A is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.160 H 297.7°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).
Color values
| HEX | #4F238A |
|---|---|
| RGB | rgb(79, 35, 138) |
| HSL | hsl(266, 60%, 34%) |
| HSV | hsv(266, 75%, 54%) |
| CMYK | cmyk(42.8%, 74.6%, 0%, 45.9%) |
| CIE-LAB | lab(25.86, 42.39, -49.48) |
| CIE-LCH | lch(25.86, 65.15, 310.59°) |
| OKLab | oklab(37.98% 0.0743 -0.1415) |
| OKLCH | oklch(37.98% 0.16 297.7) |
| XYZ | xyz(8.4117, 4.6992, 24.5037) |
| Luminance | 0.0470 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 4.92
Rebeccapurple
#663399
ΔE00 5.54
Indigo (survey)
#380282
ΔE00 6.18
Royal Purple (survey)
#4B006E
ΔE00 6.73
Indigo Blue
#3A18B1
ΔE00 6.85
Darkslateblue
#483D8B
ΔE00 7.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4F238A #5E8A23
analogous
#232B8A #4F238A #83238A
triadic
#4F238A #8A4F23 #238A4F
tetradic
#4F238A #8A232B #5E8A23 #238A83
square
#4F238A #8A232B #5E8A23 #238A83
split-complementary
#4F238A #8A8323 #2B8A23
monochromatic
#170A28 #331759 #4F238A #6B2FBB #8A54D4
Accessibility & contrast
On white
10.83
#4F238A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.94
#4F238A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4F238A
10.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4F238A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4F238A | 1.00 | 10.83 | 1.94 | 10.83 |
| #FFFFFF | 10.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003C88
Tritanopia (blue-blind)
#403D54
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #4f238a; /* rgb */ color: rgb(79, 35, 138); /* oklch */ color: oklch(38.0% 0.160 297.7);
Tailwind
colors: {
custom: {
50: '#8662ad',
500: '#4f238a',
950: '#000000',
},
}SCSS
$custom: #4f238a; $custom-light: #8662ad; $custom-dark: #000000;
JSON
{
"hex": "#4f238a",
"rgb": {
"r": 79,
"g": 35,
"b": 138
},
"hsl": {
"h": 265.631,
"s": 59.538,
"l": 33.922
},
"oklch": {
"l": 0.3798,
"c": 0.15979,
"h": 297.7
},
"luminance": 0.04699
}Semantic roles & 50–950 ramp
primary
#4F238A
secondary
#8CB751
accent
#E3459F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F