#4C2EB6#4C2EB6
#4C2EB6 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.1% C 0.199 H 284.4°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).
Color values
| HEX | #4C2EB6 |
|---|---|
| RGB | rgb(76, 46, 182) |
| HSL | hsl(253, 60%, 45%) |
| HSV | hsv(253, 75%, 71%) |
| CMYK | cmyk(58.2%, 74.7%, 0%, 28.6%) |
| CIE-LAB | lab(31.50, 48.83, -66.99) |
| CIE-LCH | lch(31.50, 82.89, 306.09°) |
| OKLab | oklab(43.11% 0.0497 -0.193) |
| OKLCH | oklch(43.11% 0.199 284.4) |
| XYZ | xyz(12.3984, 6.8671, 44.9191) |
| Luminance | 0.0687 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blue With A Hint Of Purple
#533CC6
ΔE00 4.09
Blurple
#5539CC
ΔE00 4.21
Purple Blue
#5D21D0
ΔE00 4.34
Indigo Blue
#3A18B1
ΔE00 4.61
Violet Blue
#510AC9
ΔE00 4.81
Ocean Blue
#4F42B5
ΔE00 4.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C2EB6 #98B62E
analogous
#2E54B6 #4C2EB6 #902EB6
triadic
#4C2EB6 #B64C2E #2EB64C
tetradic
#4C2EB6 #B62E54 #98B62E #2EB690
square
#4C2EB6 #B62E54 #98B62E #2EB690
split-complementary
#4C2EB6 #B6902E #54B62E
monochromatic
#231554 #382285 #4C2EB6 #6C4FD2 #9580DF
Accessibility & contrast
On white
8.85
#4C2EB6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.37
#4C2EB6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C2EB6
8.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C2EB6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C2EB6 | 1.00 | 8.85 | 2.37 | 8.85 |
| #FFFFFF | 8.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004EBA
Deuteranopia (green-blind)
#0046B3
Tritanopia (blue-blind)
#105470
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #4c2eb6; /* rgb */ color: rgb(76, 46, 182); /* oklch */ color: oklch(43.1% 0.199 284.4);
Tailwind
colors: {
custom: {
50: '#8a6acd',
500: '#4c2eb6',
950: '#000000',
},
}SCSS
$custom: #4c2eb6; $custom-light: #8a6acd; $custom-dark: #000000;
JSON
{
"hex": "#4c2eb6",
"rgb": {
"r": 76,
"g": 46,
"b": 182
},
"hsl": {
"h": 253.235,
"s": 59.649,
"l": 44.706
},
"oklch": {
"l": 0.43114,
"c": 0.19925,
"h": 284.4
},
"luminance": 0.06868
}Semantic roles & 50–950 ramp
primary
#4C2EB6
secondary
#B6C878
accent
#E345C0
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82