#4C168F#4C168F
#4C168F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.178 H 296.3°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).
Color values
| HEX | #4C168F |
|---|---|
| RGB | rgb(76, 22, 143) |
| HSL | hsl(267, 73%, 32%) |
| HSV | hsv(267, 85%, 56%) |
| CMYK | cmyk(46.9%, 84.6%, 0%, 43.9%) |
| CIE-LAB | lab(23.98, 48.83, -55.69) |
| CIE-LCH | lch(23.98, 74.07, 311.25°) |
| OKLab | oklab(36.72% 0.0788 -0.1597) |
| OKLCH | oklch(36.72% 0.178 296.3) |
| XYZ | xyz(8.2240, 4.0933, 26.3381) |
| Luminance | 0.0409 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 3.18
Indigo (survey)
#380282
ΔE00 4.30
Indigo Blue
#3A18B1
ΔE00 5.56
Royal Purple (survey)
#4B006E
ΔE00 6.10
Ultramarine
#2000B1
ΔE00 6.89
Royal
#0C1793
ΔE00 7.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C168F #598F16
analogous
#161D8F #4C168F #89168F
triadic
#4C168F #8F4C16 #168F4C
tetradic
#4C168F #8F161D #598F16 #168F89
square
#4C168F #8F161D #598F16 #168F89
split-complementary
#4C168F #8F8916 #1D8F16
monochromatic
#140625 #300E5A #4C168F #681EC4 #873EE1
Accessibility & contrast
On white
11.55
#4C168F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#4C168F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C168F
11.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C168F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C168F | 1.00 | 11.55 | 1.82 | 11.55 |
| #FFFFFF | 11.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#393A54
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #4c168f; /* rgb */ color: rgb(76, 22, 143); /* oklch */ color: oklch(36.7% 0.178 296.3);
Tailwind
colors: {
custom: {
50: '#865cb1',
500: '#4c168f',
950: '#000000',
},
}SCSS
$custom: #4c168f; $custom-light: #865cb1; $custom-dark: #000000;
JSON
{
"hex": "#4c168f",
"rgb": {
"r": 76,
"g": 22,
"b": 143
},
"hsl": {
"h": 266.777,
"s": 73.333,
"l": 32.353
},
"oklch": {
"l": 0.36721,
"c": 0.17808,
"h": 296.3
},
"luminance": 0.04093
}Semantic roles & 50–950 ramp
primary
#4C168F
secondary
#87C13F
accent
#F0389E
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980