#4A226E#4A226E
#4A226E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.9% C 0.127 H 304.8°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).
Color values
| HEX | #4A226E |
|---|---|
| RGB | rgb(74, 34, 110) |
| HSL | hsl(272, 53%, 28%) |
| HSV | hsv(272, 69%, 43%) |
| CMYK | cmyk(32.7%, 69.1%, 0%, 56.9%) |
| CIE-LAB | lab(22.74, 34.39, -36.82) |
| CIE-LCH | lch(22.74, 50.38, 313.04°) |
| OKLab | oklab(34.9% 0.0726 -0.1044) |
| OKLCH | oklch(34.9% 0.127 304.8) |
| XYZ | xyz(6.2099, 3.7257, 15.1408) |
| Luminance | 0.0373 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 5.36
Indigo
#4B0082
ΔE00 6.45
Indigo (survey)
#380282
ΔE00 7.77
Plum Purple
#4E0550
ΔE00 8.05
Rebeccapurple
#663399
ΔE00 8.56
Midnight Blue
#191970
ΔE00 8.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A226E #466E22
analogous
#24226E #4A226E #6E226C
triadic
#4A226E #6E4A22 #226E4A
tetradic
#4A226E #6E2422 #466E22 #226C6E
square
#4A226E #6E2422 #466E22 #226C6E
split-complementary
#4A226E #6C6E22 #226E24
monochromatic
#100717 #2B143F #4A226E #69309D #8945C5
Accessibility & contrast
On white
12.03
#4A226E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#4A226E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A226E
12.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A226E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A226E | 1.00 | 12.03 | 1.75 | 12.03 |
| #FFFFFF | 12.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003570
Deuteranopia (green-blind)
#0B366C
Tritanopia (blue-blind)
#433345
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #4a226e; /* rgb */ color: rgb(74, 34, 110); /* oklch */ color: oklch(34.9% 0.127 304.8);
Tailwind
colors: {
custom: {
50: '#806098',
500: '#4a226e',
950: '#000000',
},
}SCSS
$custom: #4a226e; $custom-light: #806098; $custom-dark: #000000;
JSON
{
"hex": "#4a226e",
"rgb": {
"r": 74,
"g": 34,
"b": 110
},
"hsl": {
"h": 271.579,
"s": 52.778,
"l": 28.235
},
"oklch": {
"l": 0.349,
"c": 0.12719,
"h": 304.8
},
"luminance": 0.03726
}Semantic roles & 50–950 ramp
primary
#4A226E
secondary
#74A14A
accent
#DC4C90
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0A050E
muted
#7C797E