#4C197F#4C197F
#4C197F is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.158 H 301.1°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).
Color values
| HEX | #4C197F |
|---|---|
| RGB | rgb(76, 25, 127) |
| HSL | hsl(270, 67%, 30%) |
| HSV | hsv(270, 80%, 50%) |
| CMYK | cmyk(40.2%, 80.3%, 0%, 50.2%) |
| CIE-LAB | lab(22.88, 43.58, -47.46) |
| CIE-LCH | lch(22.88, 64.43, 312.56°) |
| OKLab | oklab(35.49% 0.0818 -0.1356) |
| OKLCH | oklch(35.49% 0.158 301.1) |
| XYZ | xyz(7.1579, 3.7640, 20.4240) |
| Luminance | 0.0376 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 3.02
Royal Purple (survey)
#4B006E
ΔE00 4.23
Indigo (survey)
#380282
ΔE00 4.73
Rebeccapurple
#663399
ΔE00 7.57
Indigo Blue
#3A18B1
ΔE00 8.11
Midnight Blue
#191970
ΔE00 8.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C197F #4C7F19
analogous
#19197F #4C197F #7F197F
triadic
#4C197F #7F4C19 #197F4C
tetradic
#4C197F #7F1919 #4C7F19 #197F7F
square
#4C197F #7F1919 #4C7F19 #197F7F
split-complementary
#4C197F #7F7F19 #197F19
monochromatic
#0F051A #2D0F4C #4C197F #6B23B2 #893AD8
Accessibility & contrast
On white
11.98
#4C197F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#4C197F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C197F
11.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C197F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C197F | 1.00 | 11.98 | 1.75 | 11.98 |
| #FFFFFF | 11.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#40344C
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #4c197f; /* rgb */ color: rgb(76, 25, 127); /* oklch */ color: oklch(35.5% 0.158 301.1);
Tailwind
colors: {
custom: {
50: '#845ca5',
500: '#4c197f',
950: '#000000',
},
}SCSS
$custom: #4c197f; $custom-light: #845ca5; $custom-dark: #000000;
JSON
{
"hex": "#4c197f",
"rgb": {
"r": 76,
"g": 25,
"b": 127
},
"hsl": {
"h": 270,
"s": 67.105,
"l": 29.804
},
"oklch": {
"l": 0.35494,
"c": 0.15834,
"h": 301.1
},
"luminance": 0.03764
}Semantic roles & 50–950 ramp
primary
#4C197F
secondary
#7AB341
accent
#EA3E94
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F