#4C1972#4C1972
#4C1972 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.144 H 306.1°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).
Color values
| HEX | #4C1972 |
|---|---|
| RGB | rgb(76, 25, 114) |
| HSL | hsl(274, 64%, 27%) |
| HSV | hsv(274, 78%, 45%) |
| CMYK | cmyk(33.3%, 78.1%, 0%, 55.3%) |
| CIE-LAB | lab(21.75, 40.32, -40.99) |
| CIE-LCH | lch(21.75, 57.50, 314.53°) |
| OKLab | oklab(34.36% 0.0851 -0.1166) |
| OKLCH | oklch(34.36% 0.144 306.1) |
| XYZ | xyz(6.3647, 3.4467, 16.2463) |
| Luminance | 0.0345 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 3.29
Indigo
#4B0082
ΔE00 4.35
Indigo (survey)
#380282
ΔE00 6.12
Plum Purple
#4E0550
ΔE00 7.77
Rebeccapurple
#663399
ΔE00 8.66
Midnight Blue
#191970
ΔE00 8.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C1972 #3F7219
analogous
#1F1972 #4C1972 #72196C
triadic
#4C1972 #724C19 #19724C
tetradic
#4C1972 #721F19 #3F7219 #196C72
square
#4C1972 #721F19 #3F7219 #196C72
split-complementary
#4C1972 #6C7219 #19721F
monochromatic
#110619 #2B0E40 #4C1972 #6D24A4 #8E33D2
Accessibility & contrast
On white
12.43
#4C1972 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#4C1972 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C1972
12.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C1972 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C1972 | 1.00 | 12.43 | 1.69 | 12.43 |
| #FFFFFF | 12.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003375
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#452F44
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #4c1972; /* rgb */ color: rgb(76, 25, 114); /* oklch */ color: oklch(34.4% 0.144 306.1);
Tailwind
colors: {
custom: {
50: '#825b9b',
500: '#4c1972',
950: '#000000',
},
}SCSS
$custom: #4c1972; $custom-light: #825b9b; $custom-dark: #000000;
JSON
{
"hex": "#4c1972",
"rgb": {
"r": 76,
"g": 25,
"b": 114
},
"hsl": {
"h": 274.382,
"s": 64.029,
"l": 27.255
},
"oklch": {
"l": 0.34355,
"c": 0.14434,
"h": 306.1
},
"luminance": 0.03447
}Semantic roles & 50–950 ramp
primary
#4C1972
secondary
#6CA740
accent
#E74188
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E