#4C406A#4C406A
#4C406A is a dark, moderate violet. Relative luminance 0.062; OKLCH L 40.3% C 0.070 H 296.2°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).
Color values
| HEX | #4C406A |
|---|---|
| RGB | rgb(76, 64, 106) |
| HSL | hsl(257, 25%, 33%) |
| HSV | hsv(257, 40%, 42%) |
| CMYK | cmyk(28.3%, 39.6%, 0%, 58.4%) |
| CIE-LAB | lab(30.02, 15.28, -22.67) |
| CIE-LCH | lch(30.02, 27.34, 303.99°) |
| OKLab | oklab(40.28% 0.0311 -0.0631) |
| OKLCH | oklch(40.28% 0.07 296.2) |
| XYZ | xyz(7.4148, 6.2438, 14.4474) |
| Luminance | 0.0624 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dusk
#4E5481
ΔE00 8.18
Twilight
#4E518B
ΔE00 8.50
Darkslateblue
#483D8B
ΔE00 8.53
Blueberry
#464196
ΔE00 10.27
Grape
#6C3461
ΔE00 11.37
Rebeccapurple
#663399
ΔE00 12.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C406A #5E6A40
analogous
#40496A #4C406A #61406A
triadic
#4C406A #6A4C40 #406A4C
tetradic
#4C406A #6A4049 #5E6A40 #406A61
square
#4C406A #6A4049 #5E6A40 #406A61
split-complementary
#4C406A #6A6140 #496A40
monochromatic
#15121E #312944 #4C406A #675790 #8777AD
Accessibility & contrast
On white
9.34
#4C406A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.25
#4C406A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C406A
9.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C406A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C406A | 1.00 | 9.34 | 2.25 | 9.34 |
| #FFFFFF | 9.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#35476C
Deuteranopia (green-blind)
#374669
Tritanopia (blue-blind)
#464750
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #4c406a; /* rgb */ color: rgb(76, 64, 106); /* oklch */ color: oklch(40.3% 0.070 296.2);
Tailwind
colors: {
custom: {
50: '#7f7595',
500: '#4c406a',
950: '#000000',
},
}SCSS
$custom: #4c406a; $custom-light: #7f7595; $custom-dark: #000000;
JSON
{
"hex": "#4c406a",
"rgb": {
"r": 76,
"g": 64,
"b": 106
},
"hsl": {
"h": 257.143,
"s": 24.706,
"l": 33.333
},
"oklch": {
"l": 0.40275,
"c": 0.07037,
"h": 296.2
},
"luminance": 0.06244
}Semantic roles & 50–950 ramp
primary
#4C406A
secondary
#8C986D
accent
#C167A7
background
#F7F7F9
surface
#EEEDF1
border
#C9C8CB
text
#0A080D
muted
#7C7B7E