#4C398E#4C398E
#4C398E is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.3% C 0.135 H 289.4°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).
Color values
| HEX | #4C398E |
|---|---|
| RGB | rgb(76, 57, 142) |
| HSL | hsl(253, 43%, 39%) |
| HSV | hsv(253, 60%, 56%) |
| CMYK | cmyk(46.5%, 59.9%, 0%, 44.3%) |
| CIE-LAB | lab(30.44, 30.44, -44.54) |
| CIE-LCH | lch(30.44, 53.95, 304.35°) |
| OKLab | oklab(41.31% 0.0449 -0.1271) |
| OKLCH | oklch(41.31% 0.135 289.4) |
| XYZ | xyz(9.3247, 6.4154, 26.3329) |
| Luminance | 0.0642 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 1.84
Blueberry
#464196
ΔE00 3.32
Rebeccapurple
#663399
ΔE00 5.73
Ocean Blue
#4F42B5
ΔE00 6.51
Sapphire (survey)
#2138AB
ΔE00 7.57
Twilight
#4E518B
ΔE00 8.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C398E #7B8E39
analogous
#39518E #4C398E #77398E
triadic
#4C398E #8E4C39 #398E4C
tetradic
#4C398E #8E3951 #7B8E39 #398E77
square
#4C398E #8E3951 #7B8E39 #398E77
split-complementary
#4C398E #8E7739 #518E39
monochromatic
#1D1637 #352762 #4C398E #654DB7 #8A78C9
Accessibility & contrast
On white
9.20
#4C398E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.28
#4C398E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C398E
9.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C398E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C398E | 1.00 | 9.20 | 2.28 | 9.20 |
| #FFFFFF | 9.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#00468C
Tritanopia (blue-blind)
#384C5E
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #4c398e; /* rgb */ color: rgb(76, 57, 142); /* oklch */ color: oklch(41.3% 0.135 289.4);
Tailwind
colors: {
custom: {
50: '#8370b0',
500: '#4c398e',
950: '#000000',
},
}SCSS
$custom: #4c398e; $custom-light: #8370b0; $custom-dark: #000000;
JSON
{
"hex": "#4c398e",
"rgb": {
"r": 76,
"g": 57,
"b": 142
},
"hsl": {
"h": 253.412,
"s": 42.714,
"l": 39.02
},
"oklch": {
"l": 0.41305,
"c": 0.13479,
"h": 289.4
},
"luminance": 0.06416
}Semantic roles & 50–950 ramp
primary
#4C398E
secondary
#A4B271
accent
#D255B7
background
#F8F6FA
surface
#EFECF5
border
#CAC7CF
text
#0B0710
muted
#7C7A7F