#4C2EB0#4C2EB0
#4C2EB0 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.5% C 0.192 H 285.4°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).
Color values
| HEX | #4C2EB0 |
|---|---|
| RGB | rgb(76, 46, 176) |
| HSL | hsl(254, 59%, 44%) |
| HSV | hsv(254, 74%, 69%) |
| CMYK | cmyk(56.8%, 73.9%, 0%, 31%) |
| CIE-LAB | lab(30.94, 47.06, -64.34) |
| CIE-LCH | lch(30.94, 79.72, 306.18°) |
| OKLab | oklab(42.54% 0.0511 -0.1852) |
| OKLCH | oklch(42.54% 0.192 285.4) |
| XYZ | xyz(11.7916, 6.6244, 41.7232) |
| Luminance | 0.0663 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.51
Blue With A Hint Of Purple
#533CC6
ΔE00 4.64
Blurple
#5539CC
ΔE00 4.87
Purple Blue
#5D21D0
ΔE00 4.99
Ocean Blue
#4F42B5
ΔE00 5.06
Violet Blue
#510AC9
ΔE00 5.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C2EB0 #92B02E
analogous
#2E51B0 #4C2EB0 #8D2EB0
triadic
#4C2EB0 #B04C2E #2EB04C
tetradic
#4C2EB0 #B02E51 #92B02E #2EB08D
square
#4C2EB0 #B02E51 #92B02E #2EB08D
split-complementary
#4C2EB0 #B08D2E #51B02E
monochromatic
#22154F #37217F #4C2EB0 #6A4BD0 #927CDD
Accessibility & contrast
On white
9.03
#4C2EB0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.33
#4C2EB0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C2EB0
9.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C2EB0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C2EB0 | 1.00 | 9.03 | 2.33 | 9.03 |
| #FFFFFF | 9.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004CB4
Deuteranopia (green-blind)
#0045AE
Tritanopia (blue-blind)
#1B526C
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #4c2eb0; /* rgb */ color: rgb(76, 46, 176); /* oklch */ color: oklch(42.5% 0.192 285.4);
Tailwind
colors: {
custom: {
50: '#896ac9',
500: '#4c2eb0',
950: '#000000',
},
}SCSS
$custom: #4c2eb0; $custom-light: #896ac9; $custom-dark: #000000;
JSON
{
"hex": "#4c2eb0",
"rgb": {
"r": 76,
"g": 46,
"b": 176
},
"hsl": {
"h": 253.846,
"s": 58.559,
"l": 43.529
},
"oklch": {
"l": 0.42542,
"c": 0.19216,
"h": 285.4
},
"luminance": 0.06625
}Semantic roles & 50–950 ramp
primary
#4C2EB0
secondary
#B3C575
accent
#E246BE
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82