#4C228F#4C228F
#4C228F is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.166 H 294.7°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).
Color values
| HEX | #4C228F |
|---|---|
| RGB | rgb(76, 34, 143) |
| HSL | hsl(263, 62%, 35%) |
| HSV | hsv(263, 76%, 56%) |
| CMYK | cmyk(46.9%, 76.2%, 0%, 43.9%) |
| CIE-LAB | lab(25.75, 43.70, -52.78) |
| CIE-LCH | lch(25.75, 68.52, 309.63°) |
| OKLab | oklab(37.96% 0.0694 -0.1512) |
| OKLCH | oklch(37.96% 0.166 294.7) |
| XYZ | xyz(8.5091, 4.6635, 26.4331) |
| Luminance | 0.0466 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 4.97
Indigo Blue
#3A18B1
ΔE00 5.75
Indigo (survey)
#380282
ΔE00 5.82
Rebeccapurple
#663399
ΔE00 5.94
Royal Purple (survey)
#4B006E
ΔE00 7.27
Royal
#0C1793
ΔE00 7.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C228F #658F22
analogous
#222F8F #4C228F #83228F
triadic
#4C228F #8F4C22 #228F4C
tetradic
#4C228F #8F222F #658F22 #228F83
square
#4C228F #8F222F #658F22 #228F83
split-complementary
#4C228F #8F8322 #2F8F22
monochromatic
#170A2C #32165E #4C228F #662EC0 #8755D7
Accessibility & contrast
On white
10.87
#4C228F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.93
#4C228F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C228F
10.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C228F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C228F | 1.00 | 10.87 | 1.93 | 10.87 |
| #FFFFFF | 10.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#003B8D
Tritanopia (blue-blind)
#393F57
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #4c228f; /* rgb */ color: rgb(76, 34, 143); /* oklch */ color: oklch(38.0% 0.166 294.7);
Tailwind
colors: {
custom: {
50: '#8562b1',
500: '#4c228f',
950: '#000000',
},
}SCSS
$custom: #4c228f; $custom-light: #8562b1; $custom-dark: #000000;
JSON
{
"hex": "#4c228f",
"rgb": {
"r": 76,
"g": 34,
"b": 143
},
"hsl": {
"h": 263.119,
"s": 61.582,
"l": 34.706
},
"oklch": {
"l": 0.37958,
"c": 0.16642,
"h": 294.7
},
"luminance": 0.04664
}Semantic roles & 50–950 ramp
primary
#4C228F
secondary
#92BA52
accent
#E543A6
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980