#4C2FB8#4C2FB8
#4C2FB8 is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.4% C 0.201 H 284.0°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).
Color values
| HEX | #4C2FB8 |
|---|---|
| RGB | rgb(76, 47, 184) |
| HSL | hsl(253, 59%, 45%) |
| HSV | hsv(253, 74%, 72%) |
| CMYK | cmyk(58.7%, 74.5%, 0%, 27.8%) |
| CIE-LAB | lab(31.87, 48.90, -67.56) |
| CIE-LCH | lch(31.87, 83.40, 305.90°) |
| OKLab | oklab(43.43% 0.0485 -0.1946) |
| OKLCH | oklch(43.43% 0.201 284) |
| XYZ | xyz(12.6461, 7.0294, 46.0285) |
| Luminance | 0.0703 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blue With A Hint Of Purple
#533CC6
ΔE00 3.76
Blurple
#5539CC
ΔE00 3.87
Purple Blue
#5D21D0
ΔE00 4.22
Ocean Blue
#4F42B5
ΔE00 4.72
Indigo Blue
#3A18B1
ΔE00 4.86
Violet Blue
#510AC9
ΔE00 4.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C2FB8 #9BB82F
analogous
#2F56B8 #4C2FB8 #912FB8
triadic
#4C2FB8 #B84C2F #2FB84C
tetradic
#4C2FB8 #B82F56 #9BB82F #2FB891
square
#4C2FB8 #B82F56 #9BB82F #2FB891
split-complementary
#4C2FB8 #B8912F #56B82F
monochromatic
#241657 #382387 #4C2FB8 #6D52D3 #9682DF
Accessibility & contrast
On white
8.73
#4C2FB8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.41
#4C2FB8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C2FB8
8.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C2FB8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C2FB8 | 1.00 | 8.73 | 2.41 | 8.73 |
| #FFFFFF | 8.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FBC
Deuteranopia (green-blind)
#0046B5
Tritanopia (blue-blind)
#095571
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #4c2fb8; /* rgb */ color: rgb(76, 47, 184); /* oklch */ color: oklch(43.4% 0.201 284.0);
Tailwind
colors: {
custom: {
50: '#8a6bce',
500: '#4c2fb8',
950: '#000000',
},
}SCSS
$custom: #4c2fb8; $custom-light: #8a6bce; $custom-dark: #000000;
JSON
{
"hex": "#4c2fb8",
"rgb": {
"r": 76,
"g": 47,
"b": 184
},
"hsl": {
"h": 252.701,
"s": 59.307,
"l": 45.294
},
"oklch": {
"l": 0.43433,
"c": 0.20059,
"h": 284
},
"luminance": 0.0703
}Semantic roles & 50–950 ramp
primary
#4C2FB8
secondary
#B8C87B
accent
#E245C1
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82