#4A1F92#4A1F92
#4A1F92 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.173 H 293.2°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).
Color values
| HEX | #4A1F92 |
|---|---|
| RGB | rgb(74, 31, 146) |
| HSL | hsl(262, 65%, 35%) |
| HSV | hsv(262, 79%, 57%) |
| CMYK | cmyk(49.3%, 78.8%, 0%, 42.7%) |
| CIE-LAB | lab(25.29, 45.62, -55.40) |
| CIE-LCH | lch(25.29, 71.76, 309.47°) |
| OKLab | oklab(37.67% 0.068 -0.159) |
| OKLCH | oklch(37.67% 0.173 293.2) |
| XYZ | xyz(8.5009, 4.5109, 27.6113) |
| Luminance | 0.0451 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 4.72
Indigo Blue
#3A18B1
ΔE00 5.01
Indigo (survey)
#380282
ΔE00 5.33
Rebeccapurple
#663399
ΔE00 6.52
Royal
#0C1793
ΔE00 6.75
Ultramarine
#2000B1
ΔE00 6.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A1F92 #67921F
analogous
#1F2D92 #4A1F92 #841F92
triadic
#4A1F92 #924A1F #1F924A
tetradic
#4A1F92 #921F2D #67921F #1F9284
square
#4A1F92 #921F2D #67921F #1F9284
split-complementary
#4A1F92 #92841F #2D921F
monochromatic
#170A2D #301460 #4A1F92 #642AC4 #8451DA
Accessibility & contrast
On white
11.04
#4A1F92 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.90
#4A1F92 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A1F92
11.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A1F92 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A1F92 | 1.00 | 11.04 | 1.90 | 11.04 |
| #FFFFFF | 11.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D95
Deuteranopia (green-blind)
#003A90
Tritanopia (blue-blind)
#333F58
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #4a1f92; /* rgb */ color: rgb(74, 31, 146); /* oklch */ color: oklch(37.7% 0.173 293.2);
Tailwind
colors: {
custom: {
50: '#8460b3',
500: '#4a1f92',
950: '#000000',
},
}SCSS
$custom: #4a1f92; $custom-light: #8460b3; $custom-dark: #000000;
JSON
{
"hex": "#4a1f92",
"rgb": {
"r": 74,
"g": 31,
"b": 146
},
"hsl": {
"h": 262.435,
"s": 64.972,
"l": 34.706
},
"oklch": {
"l": 0.37665,
"c": 0.17292,
"h": 293.2
},
"luminance": 0.04511
}Semantic roles & 50–950 ramp
primary
#4A1F92
secondary
#94BD50
accent
#E840A9
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980