#4C197C#4C197C
#4C197C is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.155 H 302.2°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).
Color values
| HEX | #4C197C |
|---|---|
| RGB | rgb(76, 25, 124) |
| HSL | hsl(271, 66%, 29%) |
| HSV | hsv(271, 80%, 49%) |
| CMYK | cmyk(38.7%, 79.8%, 0%, 51.4%) |
| CIE-LAB | lab(22.61, 42.82, -45.99) |
| CIE-LCH | lch(22.61, 62.84, 312.95°) |
| OKLab | oklab(35.23% 0.0827 -0.1313) |
| OKLCH | oklch(35.23% 0.155 302.2) |
| XYZ | xyz(6.9653, 3.6870, 19.4096) |
| Luminance | 0.0369 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 3.20
Royal Purple (survey)
#4B006E
ΔE00 3.91
Indigo (survey)
#380282
ΔE00 4.95
Rebeccapurple
#663399
ΔE00 7.77
Midnight Blue
#191970
ΔE00 8.26
Indigo Blue
#3A18B1
ΔE00 8.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C197C #497C19
analogous
#1B197C #4C197C #7C197B
triadic
#4C197C #7C4C19 #197C4C
tetradic
#4C197C #7C1B19 #497C19 #197B7C
square
#4C197C #7C1B19 #497C19 #197B7C
split-complementary
#4C197C #7B7C19 #197C1B
monochromatic
#100519 #2D0F49 #4C197C #6B23AF #8A38D7
Accessibility & contrast
On white
12.09
#4C197C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#4C197C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C197C
12.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C197C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C197C | 1.00 | 12.09 | 1.74 | 12.09 |
| #FFFFFF | 12.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#00367A
Tritanopia (blue-blind)
#42334A
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #4c197c; /* rgb */ color: rgb(76, 25, 124); /* oklch */ color: oklch(35.2% 0.155 302.2);
Tailwind
colors: {
custom: {
50: '#835ca3',
500: '#4c197c',
950: '#000000',
},
}SCSS
$custom: #4c197c; $custom-light: #835ca3; $custom-dark: #000000;
JSON
{
"hex": "#4c197c",
"rgb": {
"r": 76,
"g": 25,
"b": 124
},
"hsl": {
"h": 270.909,
"s": 66.443,
"l": 29.216
},
"oklch": {
"l": 0.35225,
"c": 0.15512,
"h": 302.2
},
"luminance": 0.03687
}Semantic roles & 50–950 ramp
primary
#4C197C
secondary
#77B040
accent
#E93E91
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F