#4C188F#4C188F
#4C188F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.176 H 296.1°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).
Color values
| HEX | #4C188F |
|---|---|
| RGB | rgb(76, 24, 143) |
| HSL | hsl(266, 71%, 33%) |
| HSV | hsv(266, 83%, 56%) |
| CMYK | cmyk(46.9%, 83.2%, 0%, 43.9%) |
| CIE-LAB | lab(24.23, 48.08, -55.27) |
| CIE-LCH | lch(24.23, 73.25, 311.02°) |
| OKLab | oklab(36.9% 0.0775 -0.1585) |
| OKLCH | oklch(36.9% 0.176 296.1) |
| XYZ | xyz(8.2637, 4.1727, 26.3513) |
| Luminance | 0.0417 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 3.42
Indigo (survey)
#380282
ΔE00 4.49
Indigo Blue
#3A18B1
ΔE00 5.54
Royal Purple (survey)
#4B006E
ΔE00 6.24
Ultramarine
#2000B1
ΔE00 6.99
Royal
#0C1793
ΔE00 7.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C188F #5B8F18
analogous
#18208F #4C188F #87188F
triadic
#4C188F #8F4C18 #188F4C
tetradic
#4C188F #8F1820 #5B8F18 #188F87
square
#4C188F #8F1820 #5B8F18 #188F87
split-complementary
#4C188F #8F8718 #208F18
monochromatic
#140626 #300F5B #4C188F #6821C3 #8742DF
Accessibility & contrast
On white
11.45
#4C188F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.83
#4C188F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C188F
11.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C188F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C188F | 1.00 | 11.45 | 1.83 | 11.45 |
| #FFFFFF | 11.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#393B55
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #4c188f; /* rgb */ color: rgb(76, 24, 143); /* oklch */ color: oklch(36.9% 0.176 296.1);
Tailwind
colors: {
custom: {
50: '#865db1',
500: '#4c188f',
950: '#000000',
},
}SCSS
$custom: #4c188f; $custom-light: #865db1; $custom-dark: #000000;
JSON
{
"hex": "#4c188f",
"rgb": {
"r": 76,
"g": 24,
"b": 143
},
"hsl": {
"h": 266.218,
"s": 71.257,
"l": 32.745
},
"oklch": {
"l": 0.36898,
"c": 0.17638,
"h": 296.1
},
"luminance": 0.04173
}Semantic roles & 50–950 ramp
primary
#4C188F
secondary
#89C043
accent
#EE3A9F
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980