#4A1F7C#4A1F7C
#4A1F7C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.148 H 299.9°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).
Color values
| HEX | #4A1F7C |
|---|---|
| RGB | rgb(74, 31, 124) |
| HSL | hsl(268, 60%, 30%) |
| HSV | hsv(268, 75%, 49%) |
| CMYK | cmyk(40.3%, 75%, 0%, 51.4%) |
| CIE-LAB | lab(23.31, 39.66, -44.86) |
| CIE-LCH | lch(23.31, 59.88, 311.48°) |
| OKLab | oklab(35.66% 0.0738 -0.1281) |
| OKLCH | oklch(35.66% 0.148 299.9) |
| XYZ | xyz(6.9512, 3.8910, 19.4497) |
| Luminance | 0.0389 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 4.30
Royal Purple (survey)
#4B006E
ΔE00 4.97
Indigo (survey)
#380282
ΔE00 5.55
Rebeccapurple
#663399
ΔE00 7.34
Midnight Blue
#191970
ΔE00 7.82
Darkslateblue
#483D8B
ΔE00 8.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A1F7C #517C1F
analogous
#1F227C #4A1F7C #781F7C
triadic
#4A1F7C #7C4A1F #1F7C4A
tetradic
#4A1F7C #7C1F22 #517C1F #1F7C78
square
#4A1F7C #7C1F22 #517C1F #1F7C78
split-complementary
#4A1F7C #7C781F #227C1F
monochromatic
#10071A #2D134B #4A1F7C #672BAD #8545D0
Accessibility & contrast
On white
11.81
#4A1F7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#4A1F7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A1F7C
11.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A1F7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A1F7C | 1.00 | 11.81 | 1.78 | 11.81 |
| #FFFFFF | 11.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#3E364B
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #4a1f7c; /* rgb */ color: rgb(74, 31, 124); /* oklch */ color: oklch(35.7% 0.148 299.9);
Tailwind
colors: {
custom: {
50: '#825fa3',
500: '#4a1f7c',
950: '#000000',
},
}SCSS
$custom: #4a1f7c; $custom-light: #825fa3; $custom-dark: #000000;
JSON
{
"hex": "#4a1f7c",
"rgb": {
"r": 74,
"g": 31,
"b": 124
},
"hsl": {
"h": 267.742,
"s": 60,
"l": 30.392
},
"oklch": {
"l": 0.35657,
"c": 0.14779,
"h": 299.9
},
"luminance": 0.03891
}Semantic roles & 50–950 ramp
primary
#4A1F7C
secondary
#7FAF48
accent
#E3459A
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B050F
muted
#7C797F