#4C238A#4C238A
#4C238A is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.6% C 0.159 H 295.9°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).
Color values
| HEX | #4C238A |
|---|---|
| RGB | rgb(76, 35, 138) |
| HSL | hsl(264, 60%, 34%) |
| HSV | hsv(264, 75%, 54%) |
| CMYK | cmyk(44.9%, 74.6%, 0%, 45.9%) |
| CIE-LAB | lab(25.48, 41.84, -50.11) |
| CIE-LCH | lch(25.48, 65.28, 309.86°) |
| OKLab | oklab(37.63% 0.0697 -0.1434) |
| OKLCH | oklch(37.63% 0.159 295.9) |
| XYZ | xyz(8.1677, 4.5734, 24.4922) |
| Luminance | 0.0457 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 4.94
Indigo (survey)
#380282
ΔE00 5.91
Rebeccapurple
#663399
ΔE00 5.93
Indigo Blue
#3A18B1
ΔE00 6.57
Royal Purple (survey)
#4B006E
ΔE00 6.85
Darkslateblue
#483D8B
ΔE00 7.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C238A #618A23
analogous
#232E8A #4C238A #80238A
triadic
#4C238A #8A4C23 #238A4C
tetradic
#4C238A #8A232E #618A23 #238A80
square
#4C238A #8A232E #618A23 #238A80
split-complementary
#4C238A #8A8023 #2E8A23
monochromatic
#160A28 #311759 #4C238A #672FBB #8754D4
Accessibility & contrast
On white
10.97
#4C238A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.91
#4C238A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C238A
10.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C238A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C238A | 1.00 | 10.97 | 1.91 | 10.97 |
| #FFFFFF | 10.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003B88
Tritanopia (blue-blind)
#3B3E54
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #4c238a; /* rgb */ color: rgb(76, 35, 138); /* oklch */ color: oklch(37.6% 0.159 295.9);
Tailwind
colors: {
custom: {
50: '#8462ad',
500: '#4c238a',
950: '#000000',
},
}SCSS
$custom: #4c238a; $custom-light: #8462ad; $custom-dark: #000000;
JSON
{
"hex": "#4c238a",
"rgb": {
"r": 76,
"g": 35,
"b": 138
},
"hsl": {
"h": 263.883,
"s": 59.538,
"l": 33.922
},
"oklch": {
"l": 0.37629,
"c": 0.15947,
"h": 295.9
},
"luminance": 0.04574
}Semantic roles & 50–950 ramp
primary
#4C238A
secondary
#8FB751
accent
#E345A4
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0510
muted
#7C7A7F