#4C198F#4C198F
#4C198F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.175 H 295.9°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).
Color values
| HEX | #4C198F |
|---|---|
| RGB | rgb(76, 25, 143) |
| HSL | hsl(266, 70%, 33%) |
| HSV | hsv(266, 83%, 56%) |
| CMYK | cmyk(46.9%, 82.5%, 0%, 43.9%) |
| CIE-LAB | lab(24.37, 47.69, -55.05) |
| CIE-LCH | lch(24.37, 72.83, 310.90°) |
| OKLab | oklab(36.99% 0.0768 -0.1578) |
| OKLCH | oklch(36.99% 0.176 295.9) |
| XYZ | xyz(8.2847, 4.2147, 26.3583) |
| Luminance | 0.0421 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 3.55
Indigo (survey)
#380282
ΔE00 4.60
Indigo Blue
#3A18B1
ΔE00 5.53
Royal Purple (survey)
#4B006E
ΔE00 6.32
Rebeccapurple
#663399
ΔE00 6.97
Ultramarine
#2000B1
ΔE00 7.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C198F #5C8F19
analogous
#19218F #4C198F #87198F
triadic
#4C198F #8F4C19 #198F4C
tetradic
#4C198F #8F1921 #5C8F19 #198F87
square
#4C198F #8F1921 #5C8F19 #198F87
split-complementary
#4C198F #8F8719 #218F19
monochromatic
#150727 #30105B #4C198F #6822C3 #8744DE
Accessibility & contrast
On white
11.39
#4C198F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#4C198F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C198F
11.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C198F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C198F | 1.00 | 11.39 | 1.84 | 11.39 |
| #FFFFFF | 11.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#393B55
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #4c198f; /* rgb */ color: rgb(76, 25, 143); /* oklch */ color: oklch(37.0% 0.175 295.9);
Tailwind
colors: {
custom: {
50: '#865db1',
500: '#4c198f',
950: '#000000',
},
}SCSS
$custom: #4c198f; $custom-light: #865db1; $custom-dark: #000000;
JSON
{
"hex": "#4c198f",
"rgb": {
"r": 76,
"g": 25,
"b": 143
},
"hsl": {
"h": 265.932,
"s": 70.238,
"l": 32.941
},
"oklch": {
"l": 0.36991,
"c": 0.1755,
"h": 295.9
},
"luminance": 0.04215
}Semantic roles & 50–950 ramp
primary
#4C198F
secondary
#8ABF44
accent
#ED3BA0
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980