#4C238F#4C238F
#4C238F is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.165 H 294.5°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).
Color values
| HEX | #4C238F |
|---|---|
| RGB | rgb(76, 35, 143) |
| HSL | hsl(263, 61%, 35%) |
| HSV | hsv(263, 76%, 56%) |
| CMYK | cmyk(46.9%, 75.5%, 0%, 43.9%) |
| CIE-LAB | lab(25.93, 43.21, -52.49) |
| CIE-LCH | lch(25.93, 67.99, 309.46°) |
| OKLab | oklab(38.08% 0.0685 -0.1504) |
| OKLCH | oklch(38.08% 0.165 294.5) |
| XYZ | xyz(8.5381, 4.7215, 26.4428) |
| Luminance | 0.0472 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 5.16
Indigo Blue
#3A18B1
ΔE00 5.81
Rebeccapurple
#663399
ΔE00 5.83
Indigo (survey)
#380282
ΔE00 5.99
Darkslateblue
#483D8B
ΔE00 7.37
Royal
#0C1793
ΔE00 7.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C238F #668F23
analogous
#23308F #4C238F #82238F
triadic
#4C238F #8F4C23 #238F4C
tetradic
#4C238F #8F2330 #668F23 #238F82
square
#4C238F #8F2330 #668F23 #238F82
split-complementary
#4C238F #8F8223 #308F23
monochromatic
#180B2D #32175E #4C238F #662FC0 #8757D6
Accessibility & contrast
On white
10.80
#4C238F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.94
#4C238F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C238F
10.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C238F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C238F | 1.00 | 10.80 | 1.94 | 10.80 |
| #FFFFFF | 10.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#003C8D
Tritanopia (blue-blind)
#394057
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #4c238f; /* rgb */ color: rgb(76, 35, 143); /* oklch */ color: oklch(38.1% 0.165 294.5);
Tailwind
colors: {
custom: {
50: '#8562b1',
500: '#4c238f',
950: '#000000',
},
}SCSS
$custom: #4c238f; $custom-light: #8562b1; $custom-dark: #000000;
JSON
{
"hex": "#4c238f",
"rgb": {
"r": 76,
"g": 35,
"b": 143
},
"hsl": {
"h": 262.778,
"s": 60.674,
"l": 34.902
},
"oklch": {
"l": 0.38079,
"c": 0.1653,
"h": 294.5
},
"luminance": 0.04722
}Semantic roles & 50–950 ramp
primary
#4C238F
secondary
#93BA54
accent
#E444A7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80