#4A2FAC#4A2FAC
#4A2FAC is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.1% C 0.186 H 285.0°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).
Color values
| HEX | #4A2FAC |
|---|---|
| RGB | rgb(74, 47, 172) |
| HSL | hsl(253, 57%, 43%) |
| HSV | hsv(253, 73%, 67%) |
| CMYK | cmyk(57%, 72.7%, 0%, 32.5%) |
| CIE-LAB | lab(30.56, 45.05, -62.57) |
| CIE-LCH | lch(30.56, 77.11, 305.75°) |
| OKLab | oklab(42.12% 0.0483 -0.1801) |
| OKLCH | oklch(42.12% 0.186 285) |
| XYZ | xyz(11.2847, 6.4668, 39.6753) |
| Luminance | 0.0647 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.62
Blue With A Hint Of Purple
#533CC6
ΔE00 4.96
Ocean Blue
#4F42B5
ΔE00 4.99
Blurple
#5539CC
ΔE00 5.30
Purple Blue
#5D21D0
ΔE00 5.65
Violet Blue
#510AC9
ΔE00 5.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A2FAC #91AC2F
analogous
#2F52AC #4A2FAC #882FAC
triadic
#4A2FAC #AC4A2F #2FAC4A
tetradic
#4A2FAC #AC2F52 #91AC2F #2FAC88
square
#4A2FAC #AC2F52 #91AC2F #2FAC88
split-complementary
#4A2FAC #AC882F #52AC2F
monochromatic
#21154C #35227C #4A2FAC #674BCE #8F7BDB
Accessibility & contrast
On white
9.16
#4A2FAC on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.29
#4A2FAC on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A2FAC
9.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A2FAC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A2FAC | 1.00 | 9.16 | 2.29 | 9.16 |
| #FFFFFF | 9.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004BB0
Deuteranopia (green-blind)
#0044AA
Tritanopia (blue-blind)
#1A516A
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #4a2fac; /* rgb */ color: rgb(74, 47, 172); /* oklch */ color: oklch(42.1% 0.186 285.0);
Tailwind
colors: {
custom: {
50: '#876ac6',
500: '#4a2fac',
950: '#000000',
},
}SCSS
$custom: #4a2fac; $custom-light: #876ac6; $custom-dark: #000000;
JSON
{
"hex": "#4a2fac",
"rgb": {
"r": 74,
"g": 47,
"b": 172
},
"hsl": {
"h": 252.96,
"s": 57.078,
"l": 42.941
},
"oklch": {
"l": 0.42117,
"c": 0.18649,
"h": 285
},
"luminance": 0.06467
}Semantic roles & 50–950 ramp
primary
#4A2FAC
secondary
#B2C374
accent
#E047BF
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82