#4A1F7D#4A1F7D
#4A1F7D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.149 H 299.6°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).
Color values
| HEX | #4A1F7D |
|---|---|
| RGB | rgb(74, 31, 125) |
| HSL | hsl(267, 60%, 31%) |
| HSV | hsv(267, 75%, 49%) |
| CMYK | cmyk(40.8%, 75.2%, 0%, 51%) |
| CIE-LAB | lab(23.39, 39.93, -45.36) |
| CIE-LCH | lch(23.39, 60.43, 311.36°) |
| OKLab | oklab(35.74% 0.0735 -0.1295) |
| OKLCH | oklch(35.74% 0.149 299.6) |
| XYZ | xyz(7.0148, 3.9164, 19.7844) |
| Luminance | 0.0392 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 4.24
Royal Purple (survey)
#4B006E
ΔE00 5.04
Indigo (survey)
#380282
ΔE00 5.47
Rebeccapurple
#663399
ΔE00 7.27
Midnight Blue
#191970
ΔE00 7.80
Darkslateblue
#483D8B
ΔE00 8.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A1F7D #527D1F
analogous
#1F237D #4A1F7D #791F7D
triadic
#4A1F7D #7D4A1F #1F7D4A
tetradic
#4A1F7D #7D1F23 #527D1F #1F7D79
square
#4A1F7D #7D1F23 #527D1F #1F7D79
split-complementary
#4A1F7D #7D791F #237D1F
monochromatic
#10071B #2D134C #4A1F7D #672BAE #8545D1
Accessibility & contrast
On white
11.78
#4A1F7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#4A1F7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A1F7D
11.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A1F7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A1F7D | 1.00 | 11.78 | 1.78 | 11.78 |
| #FFFFFF | 11.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#3E374C
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #4a1f7d; /* rgb */ color: rgb(74, 31, 125); /* oklch */ color: oklch(35.7% 0.149 299.6);
Tailwind
colors: {
custom: {
50: '#825fa3',
500: '#4a1f7d',
950: '#000000',
},
}SCSS
$custom: #4a1f7d; $custom-light: #825fa3; $custom-dark: #000000;
JSON
{
"hex": "#4a1f7d",
"rgb": {
"r": 74,
"g": 31,
"b": 125
},
"hsl": {
"h": 267.447,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.35744,
"c": 0.14894,
"h": 299.6
},
"luminance": 0.03916
}Semantic roles & 50–950 ramp
primary
#4A1F7D
secondary
#80B048
accent
#E3449B
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B050F
muted
#7C797F