#5A269C#5A269C
#5A269C is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.2% C 0.178 H 298.1°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).
Color values
| HEX | #5A269C |
|---|---|
| RGB | rgb(90, 38, 156) |
| HSL | hsl(266, 61%, 38%) |
| HSV | hsv(266, 76%, 61%) |
| CMYK | cmyk(42.3%, 75.6%, 0%, 38.8%) |
| CIE-LAB | lab(29.31, 47.68, -54.88) |
| CIE-LCH | lch(29.31, 72.70, 310.98°) |
| OKLab | oklab(41.21% 0.0839 -0.1569) |
| OKLCH | oklch(41.21% 0.178 298.1) |
| XYZ | xyz(10.9088, 5.9600, 32.0217) |
| Luminance | 0.0596 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.74
Indigo Blue
#3A18B1
ΔE00 6.04
Violet Blue
#510AC9
ΔE00 6.71
Indigo
#4B0082
ΔE00 6.80
Purple (survey)
#7E1E9C
ΔE00 6.84
Purple Blue
#5D21D0
ΔE00 7.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A269C #689C26
analogous
#262D9C #5A269C #95269C
triadic
#5A269C #9C5A26 #269C5A
tetradic
#5A269C #9C262D #689C26 #269C95
square
#5A269C #9C262D #689C26 #269C95
split-complementary
#5A269C #9C9526 #2D9C26
monochromatic
#210E3A #3E1A6B #5A269C #7632CD #9763D9
Accessibility & contrast
On white
9.58
#5A269C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#5A269C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A269C
9.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A269C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A269C | 1.00 | 9.58 | 2.19 | 9.58 |
| #FFFFFF | 9.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00459F
Deuteranopia (green-blind)
#00449A
Tritanopia (blue-blind)
#49455F
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #5a269c; /* rgb */ color: rgb(90, 38, 156); /* oklch */ color: oklch(41.2% 0.178 298.1);
Tailwind
colors: {
custom: {
50: '#8f66ba',
500: '#5a269c',
950: '#000000',
},
}SCSS
$custom: #5a269c; $custom-light: #8f66ba; $custom-dark: #000000;
JSON
{
"hex": "#5a269c",
"rgb": {
"r": 90,
"g": 38,
"b": 156
},
"hsl": {
"h": 266.441,
"s": 60.825,
"l": 38.039
},
"oklch": {
"l": 0.41206,
"c": 0.17795,
"h": 298.1
},
"luminance": 0.0596
}Semantic roles & 50–950 ramp
primary
#5A269C
secondary
#95BF5F
accent
#E4449D
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81