#45226F#45226F
#45226F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.3% C 0.127 H 300.7°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).
Color values
| HEX | #45226F |
|---|---|
| RGB | rgb(69, 34, 111) |
| HSL | hsl(267, 53%, 28%) |
| HSV | hsv(267, 69%, 44%) |
| CMYK | cmyk(37.8%, 69.4%, 0%, 56.5%) |
| CIE-LAB | lab(22.15, 33.48, -38.46) |
| CIE-LCH | lch(22.15, 50.99, 311.04°) |
| OKLab | oklab(34.35% 0.065 -0.1094) |
| OKLCH | oklch(34.35% 0.127 300.7) |
| XYZ | xyz(5.8948, 3.5569, 15.4118) |
| Luminance | 0.0356 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 5.60
Indigo
#4B0082
ΔE00 6.30
Indigo (survey)
#380282
ΔE00 7.14
Midnight Blue
#191970
ΔE00 7.59
Dark Indigo
#1F0954
ΔE00 8.27
Darkslateblue
#483D8B
ΔE00 8.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#45226F #4C6F22
analogous
#22256F #45226F #6B226F
triadic
#45226F #6F4522 #226F45
tetradic
#45226F #6F2225 #4C6F22 #226F6B
square
#45226F #6F2225 #4C6F22 #226F6B
split-complementary
#45226F #6F6B22 #256F22
monochromatic
#0F0717 #281440 #45226F #62309E #8045C6
Accessibility & contrast
On white
12.27
#45226F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#45226F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #45226F
12.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##45226F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##45226F | 1.00 | 12.27 | 1.71 | 12.27 |
| #FFFFFF | 12.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003571
Deuteranopia (green-blind)
#00346D
Tritanopia (blue-blind)
#3C3345
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #45226f; /* rgb */ color: rgb(69, 34, 111); /* oklch */ color: oklch(34.3% 0.127 300.7);
Tailwind
colors: {
custom: {
50: '#7c6099',
500: '#45226f',
950: '#000000',
},
}SCSS
$custom: #45226f; $custom-light: #7c6099; $custom-dark: #000000;
JSON
{
"hex": "#45226f",
"rgb": {
"r": 69,
"g": 34,
"b": 111
},
"hsl": {
"h": 267.273,
"s": 53.103,
"l": 28.431
},
"oklch": {
"l": 0.34349,
"c": 0.12727,
"h": 300.7
},
"luminance": 0.03557
}Semantic roles & 50–950 ramp
primary
#45226F
secondary
#7AA24A
accent
#DD4B9A
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050E
muted
#7C797E