#4C229F#4C229F
#4C229F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.185 H 290.6°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).
Color values
| HEX | #4C229F |
|---|---|
| RGB | rgb(76, 34, 159) |
| HSL | hsl(260, 65%, 38%) |
| HSV | hsv(260, 79%, 62%) |
| CMYK | cmyk(52.2%, 78.6%, 0%, 37.6%) |
| CIE-LAB | lab(27.25, 48.10, -60.15) |
| CIE-LCH | lch(27.25, 77.02, 308.65°) |
| OKLab | oklab(39.46% 0.0649 -0.1729) |
| OKLCH | oklch(39.46% 0.185 290.6) |
| XYZ | xyz(9.8087, 5.1833, 33.2778) |
| Luminance | 0.0518 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.69
Violet Blue
#510AC9
ΔE00 5.74
Rebeccapurple
#663399
ΔE00 6.17
Indigo
#4B0082
ΔE00 6.35
Ultramarine
#2000B1
ΔE00 6.41
Indigo (survey)
#380282
ΔE00 6.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C229F #759F22
analogous
#22369F #4C229F #8A229F
triadic
#4C229F #9F4C22 #229F4C
tetradic
#4C229F #9F2236 #759F22 #229F8A
square
#4C229F #9F2236 #759F22 #229F8A
split-complementary
#4C229F #9F8A22 #369F22
monochromatic
#1C0C3A #34176D #4C229F #642DD1 #895FDD
Accessibility & contrast
On white
10.31
#4C229F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.04
#4C229F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C229F
10.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C229F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C229F | 1.00 | 10.31 | 2.04 | 10.31 |
| #FFFFFF | 10.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0042A2
Deuteranopia (green-blind)
#003E9D
Tritanopia (blue-blind)
#2E4660
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #4c229f; /* rgb */ color: rgb(76, 34, 159); /* oklch */ color: oklch(39.5% 0.185 290.6);
Tailwind
colors: {
custom: {
50: '#8763bc',
500: '#4c229f',
950: '#000000',
},
}SCSS
$custom: #4c229f; $custom-light: #8763bc; $custom-dark: #000000;
JSON
{
"hex": "#4c229f",
"rgb": {
"r": 76,
"g": 34,
"b": 159
},
"hsl": {
"h": 260.16,
"s": 64.767,
"l": 37.843
},
"oklch": {
"l": 0.39464,
"c": 0.18464,
"h": 290.6
},
"luminance": 0.05184
}Semantic roles & 50–950 ramp
primary
#4C229F
secondary
#9FC15B
accent
#E840AF
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81