#4A2FA6#4A2FA6
#4A2FA6 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.179 H 286.1°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).
Color values
| HEX | #4A2FA6 |
|---|---|
| RGB | rgb(74, 47, 166) |
| HSL | hsl(254, 56%, 42%) |
| HSV | hsv(254, 72%, 65%) |
| CMYK | cmyk(55.4%, 71.7%, 0%, 34.9%) |
| CIE-LAB | lab(30.01, 43.25, -59.86) |
| CIE-LCH | lch(30.01, 73.85, 305.85°) |
| OKLab | oklab(41.56% 0.0496 -0.1722) |
| OKLCH | oklch(41.56% 0.179 286.1) |
| XYZ | xyz(10.7214, 6.2415, 36.7088) |
| Luminance | 0.0624 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.82
Ocean Blue
#4F42B5
ΔE00 5.30
Blue With A Hint Of Purple
#533CC6
ΔE00 5.64
Rebeccapurple
#663399
ΔE00 5.98
Blurple
#5539CC
ΔE00 6.04
Sapphire (survey)
#2138AB
ΔE00 6.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A2FA6 #8BA62F
analogous
#2F50A6 #4A2FA6 #862FA6
triadic
#4A2FA6 #A64A2F #2FA64A
tetradic
#4A2FA6 #A62F50 #8BA62F #2FA686
square
#4A2FA6 #A62F50 #8BA62F #2FA686
split-complementary
#4A2FA6 #A6862F #50A62F
monochromatic
#1F1447 #352176 #4A2FA6 #6547CB #8D77D8
Accessibility & contrast
On white
9.34
#4A2FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.25
#4A2FA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A2FA6
9.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A2FA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A2FA6 | 1.00 | 9.34 | 2.25 | 9.34 |
| #FFFFFF | 9.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004AAA
Deuteranopia (green-blind)
#0043A4
Tritanopia (blue-blind)
#224F67
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #4a2fa6; /* rgb */ color: rgb(74, 47, 166); /* oklch */ color: oklch(41.6% 0.179 286.1);
Tailwind
colors: {
custom: {
50: '#866ac1',
500: '#4a2fa6',
950: '#000000',
},
}SCSS
$custom: #4a2fa6; $custom-light: #866ac1; $custom-dark: #000000;
JSON
{
"hex": "#4a2fa6",
"rgb": {
"r": 74,
"g": 47,
"b": 166
},
"hsl": {
"h": 253.613,
"s": 55.869,
"l": 41.765
},
"oklch": {
"l": 0.41561,
"c": 0.17918,
"h": 286.1
},
"luminance": 0.06242
}Semantic roles & 50–950 ramp
primary
#4A2FA6
secondary
#AEC170
accent
#DF49BD
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0712
muted
#7D7A81