#4A1F7F#4A1F7F
#4A1F7F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.151 H 298.9°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).
Color values
| HEX | #4A1F7F |
|---|---|
| RGB | rgb(74, 31, 127) |
| HSL | hsl(267, 61%, 31%) |
| HSV | hsv(267, 76%, 50%) |
| CMYK | cmyk(41.7%, 75.6%, 0%, 50.2%) |
| CIE-LAB | lab(23.57, 40.47, -46.35) |
| CIE-LCH | lch(23.57, 61.53, 311.13°) |
| OKLab | oklab(35.92% 0.0731 -0.1324) |
| OKLCH | oklch(35.92% 0.151 298.9) |
| XYZ | xyz(7.1438, 3.9680, 20.4641) |
| Luminance | 0.0397 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 4.15
Royal Purple (survey)
#4B006E
ΔE00 5.21
Indigo (survey)
#380282
ΔE00 5.33
Rebeccapurple
#663399
ΔE00 7.13
Midnight Blue
#191970
ΔE00 7.77
Indigo Blue
#3A18B1
ΔE00 8.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A1F7F #547F1F
analogous
#1F247F #4A1F7F #7A1F7F
triadic
#4A1F7F #7F4A1F #1F7F4A
tetradic
#4A1F7F #7F1F24 #547F1F #1F7F7A
square
#4A1F7F #7F1F24 #547F1F #1F7F7A
split-complementary
#4A1F7F #7F7A1F #247F1F
monochromatic
#11071D #2D134E #4A1F7F #672BB0 #8546D2
Accessibility & contrast
On white
11.71
#4A1F7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#4A1F7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A1F7F
11.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A1F7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A1F7F | 1.00 | 11.71 | 1.79 | 11.71 |
| #FFFFFF | 11.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#3D374D
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #4a1f7f; /* rgb */ color: rgb(74, 31, 127); /* oklch */ color: oklch(35.9% 0.151 298.9);
Tailwind
colors: {
custom: {
50: '#825fa5',
500: '#4a1f7f',
950: '#000000',
},
}SCSS
$custom: #4a1f7f; $custom-light: #825fa5; $custom-dark: #000000;
JSON
{
"hex": "#4a1f7f",
"rgb": {
"r": 74,
"g": 31,
"b": 127
},
"hsl": {
"h": 266.875,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.35919,
"c": 0.15125,
"h": 298.9
},
"luminance": 0.03968
}Semantic roles & 50–950 ramp
primary
#4A1F7F
secondary
#82B248
accent
#E4449C
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B050F
muted
#7C797F