#4C229E#4C229E
#4C229E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.4% C 0.184 H 290.8°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).
Color values
| HEX | #4C229E |
|---|---|
| RGB | rgb(76, 34, 158) |
| HSL | hsl(260, 65%, 38%) |
| HSV | hsv(260, 78%, 62%) |
| CMYK | cmyk(51.9%, 78.5%, 0%, 38%) |
| CIE-LAB | lab(27.15, 47.83, -59.70) |
| CIE-LCH | lch(27.15, 76.49, 308.70°) |
| OKLab | oklab(39.37% 0.0652 -0.1715) |
| OKLCH | oklch(39.37% 0.184 290.8) |
| XYZ | xyz(9.7223, 5.1488, 32.8227) |
| Luminance | 0.0515 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.79
Violet Blue
#510AC9
ΔE00 5.87
Rebeccapurple
#663399
ΔE00 6.13
Indigo
#4B0082
ΔE00 6.25
Ultramarine
#2000B1
ΔE00 6.47
Indigo (survey)
#380282
ΔE00 6.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C229E #749E22
analogous
#22369E #4C229E #8A229E
triadic
#4C229E #9E4C22 #229E4C
tetradic
#4C229E #9E2236 #749E22 #229E8A
square
#4C229E #9E2236 #749E22 #229E8A
split-complementary
#4C229E #9E8A22 #369E22
monochromatic
#1C0C39 #34176C #4C229E #642DD0 #895EDC
Accessibility & contrast
On white
10.35
#4C229E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.03
#4C229E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C229E
10.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C229E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C229E | 1.00 | 10.35 | 2.03 | 10.35 |
| #FFFFFF | 10.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0042A1
Deuteranopia (green-blind)
#003D9C
Tritanopia (blue-blind)
#2F455F
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #4c229e; /* rgb */ color: rgb(76, 34, 158); /* oklch */ color: oklch(39.4% 0.184 290.8);
Tailwind
colors: {
custom: {
50: '#8762bc',
500: '#4c229e',
950: '#000000',
},
}SCSS
$custom: #4c229e; $custom-light: #8762bc; $custom-dark: #000000;
JSON
{
"hex": "#4c229e",
"rgb": {
"r": 76,
"g": 34,
"b": 158
},
"hsl": {
"h": 260.323,
"s": 64.583,
"l": 37.647
},
"oklch": {
"l": 0.39367,
"c": 0.18351,
"h": 290.8
},
"luminance": 0.05149
}Semantic roles & 50–950 ramp
primary
#4C229E
secondary
#9EC15B
accent
#E840AF
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81