#4C229C#4C229C
#4C229C is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.181 H 291.3°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).
Color values
| HEX | #4C229C |
|---|---|
| RGB | rgb(76, 34, 156) |
| HSL | hsl(261, 64%, 37%) |
| HSV | hsv(261, 78%, 61%) |
| CMYK | cmyk(51.3%, 78.2%, 0%, 38.8%) |
| CIE-LAB | lab(26.96, 47.28, -58.79) |
| CIE-LCH | lch(26.96, 75.44, 308.80°) |
| OKLab | oklab(39.17% 0.0658 -0.1689) |
| OKLCH | oklch(39.17% 0.181 291.3) |
| XYZ | xyz(9.5516, 5.0805, 31.9234) |
| Luminance | 0.0508 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.01
Indigo
#4B0082
ΔE00 6.05
Rebeccapurple
#663399
ΔE00 6.07
Violet Blue
#510AC9
ΔE00 6.15
Indigo (survey)
#380282
ΔE00 6.57
Ultramarine
#2000B1
ΔE00 6.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C229C #729C22
analogous
#22359C #4C229C #89229C
triadic
#4C229C #9C4C22 #229C4C
tetradic
#4C229C #9C2235 #729C22 #229C89
square
#4C229C #9C2235 #729C22 #229C89
split-complementary
#4C229C #9C8922 #359C22
monochromatic
#1B0C38 #34176A #4C229C #642DCE #885DDC
Accessibility & contrast
On white
10.42
#4C229C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.02
#4C229C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C229C
10.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C229C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C229C | 1.00 | 10.42 | 2.02 | 10.42 |
| #FFFFFF | 10.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#003D9A
Tritanopia (blue-blind)
#30445E
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #4c229c; /* rgb */ color: rgb(76, 34, 156); /* oklch */ color: oklch(39.2% 0.181 291.3);
Tailwind
colors: {
custom: {
50: '#8762ba',
500: '#4c229c',
950: '#000000',
},
}SCSS
$custom: #4c229c; $custom-light: #8762ba; $custom-dark: #000000;
JSON
{
"hex": "#4c229c",
"rgb": {
"r": 76,
"g": 34,
"b": 156
},
"hsl": {
"h": 260.656,
"s": 64.211,
"l": 37.255
},
"oklch": {
"l": 0.39175,
"c": 0.18125,
"h": 291.3
},
"luminance": 0.05081
}Semantic roles & 50–950 ramp
primary
#4C229C
secondary
#9DC05A
accent
#E741AE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81