#45218E#45218E
#45218E is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.166 H 291.0°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).
Color values
| HEX | #45218E |
|---|---|
| RGB | rgb(69, 33, 142) |
| HSL | hsl(260, 62%, 34%) |
| HSV | hsv(260, 77%, 56%) |
| CMYK | cmyk(51.4%, 76.8%, 0%, 44.3%) |
| CIE-LAB | lab(24.66, 42.77, -53.98) |
| CIE-LCH | lch(24.66, 68.87, 308.39°) |
| OKLab | oklab(36.97% 0.0597 -0.155) |
| OKLCH | oklch(36.97% 0.166 291) |
| XYZ | xyz(7.8792, 4.3056, 26.0018) |
| Luminance | 0.0431 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 5.02
Indigo (survey)
#380282
ΔE00 5.19
Indigo Blue
#3A18B1
ΔE00 5.35
Royal
#0C1793
ΔE00 6.19
Rebeccapurple
#663399
ΔE00 7.01
Ultramarine
#2000B1
ΔE00 7.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#45218E #6A8E21
analogous
#21338E #45218E #7C218E
triadic
#45218E #8E4521 #218E45
tetradic
#45218E #8E2133 #6A8E21 #218E7C
square
#45218E #8E2133 #6A8E21 #218E7C
split-complementary
#45218E #8E7C21 #338E21
monochromatic
#150A2B #2D155C #45218E #5D2DC0 #7E52D7
Accessibility & contrast
On white
11.28
#45218E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.86
#45218E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #45218E
11.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##45218E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##45218E | 1.00 | 11.28 | 1.86 | 11.28 |
| #FFFFFF | 11.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#2C3F56
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #45218e; /* rgb */ color: rgb(69, 33, 142); /* oklch */ color: oklch(37.0% 0.166 291.0);
Tailwind
colors: {
custom: {
50: '#8160b0',
500: '#45218e',
950: '#000000',
},
}SCSS
$custom: #45218e; $custom-light: #8160b0; $custom-dark: #000000;
JSON
{
"hex": "#45218e",
"rgb": {
"r": 69,
"g": 33,
"b": 142
},
"hsl": {
"h": 259.817,
"s": 62.286,
"l": 34.314
},
"oklch": {
"l": 0.36968,
"c": 0.16611,
"h": 291
},
"luminance": 0.04306
}Semantic roles & 50–950 ramp
primary
#45218E
secondary
#97BA50
accent
#E542B0
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980