#5A2DAF#5A2DAF
#5A2DAF is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.7% C 0.192 H 292.4°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).
Color values
| HEX | #5A2DAF |
|---|---|
| RGB | rgb(90, 45, 175) |
| HSL | hsl(261, 59%, 43%) |
| HSV | hsv(261, 74%, 69%) |
| CMYK | cmyk(48.6%, 74.3%, 0%, 31.4%) |
| CIE-LAB | lab(32.13, 49.41, -61.72) |
| CIE-LCH | lch(32.13, 79.07, 308.68°) |
| OKLab | oklab(43.71% 0.073 -0.1771) |
| OKLCH | oklch(43.71% 0.192 292.4) |
| XYZ | xyz(12.8905, 7.1451, 41.2491) |
| Luminance | 0.0715 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple Blue
#5D21D0
ΔE00 4.48
Rebeccapurple
#663399
ΔE00 4.76
Blue With A Hint Of Purple
#533CC6
ΔE00 5.00
Blurple
#5539CC
ΔE00 5.05
Violet Blue
#510AC9
ΔE00 5.25
Indigo Blue
#3A18B1
ΔE00 5.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A2DAF #82AF2D
analogous
#2D41AF #5A2DAF #9B2DAF
triadic
#5A2DAF #AF5A2D #2DAF5A
tetradic
#5A2DAF #AF2D41 #82AF2D #2DAF9B
square
#5A2DAF #AF2D41 #82AF2D #2DAF9B
split-complementary
#5A2DAF #AF9B2D #41AF2D
monochromatic
#28144E #41207E #5A2DAF #7849D0 #9C7ADD
Accessibility & contrast
On white
8.64
#5A2DAF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.43
#5A2DAF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A2DAF
8.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A2DAF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A2DAF | 1.00 | 8.64 | 2.43 | 8.64 |
| #FFFFFF | 8.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004DB3
Deuteranopia (green-blind)
#0049AD
Tritanopia (blue-blind)
#3F506C
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #5a2daf; /* rgb */ color: rgb(90, 45, 175); /* oklch */ color: oklch(43.7% 0.192 292.4);
Tailwind
colors: {
custom: {
50: '#916ac8',
500: '#5a2daf',
950: '#000000',
},
}SCSS
$custom: #5a2daf; $custom-light: #916ac8; $custom-dark: #000000;
JSON
{
"hex": "#5a2daf",
"rgb": {
"r": 90,
"g": 45,
"b": 175
},
"hsl": {
"h": 260.769,
"s": 59.091,
"l": 43.137
},
"oklch": {
"l": 0.43706,
"c": 0.19153,
"h": 292.4
},
"luminance": 0.07146
}Semantic roles & 50–950 ramp
primary
#5A2DAF
secondary
#A9C573
accent
#E246AC
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82