#5A45AF#5A45AF
#5A45AF is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.2% C 0.162 H 287.7°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).
Color values
| HEX | #5A45AF |
|---|---|
| RGB | rgb(90, 69, 175) |
| HSL | hsl(252, 43%, 48%) |
| HSV | hsv(252, 61%, 69%) |
| CMYK | cmyk(48.6%, 60.6%, 0%, 31.4%) |
| CIE-LAB | lab(36.97, 36.22, -53.84) |
| CIE-LCH | lch(36.97, 64.89, 303.93°) |
| OKLab | oklab(47.19% 0.049 -0.154) |
| OKLCH | oklch(47.19% 0.162 287.7) |
| XYZ | xyz(14.0802, 9.5244, 41.6456) |
| Luminance | 0.0953 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Ocean Blue
#4F42B5
ΔE00 2.25
Bluey Purple
#6241C7
ΔE00 3.87
Blue With A Hint Of Purple
#533CC6
ΔE00 4.17
Blurple
#5539CC
ΔE00 5.06
Blueberry
#464196
ΔE00 5.12
Iris
#6258C4
ΔE00 6.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A45AF #9AAF45
analogous
#4565AF #5A45AF #8F45AF
triadic
#5A45AF #AF5A45 #45AF5A
tetradic
#5A45AF #AF4565 #9AAF45 #45AF8F
square
#5A45AF #AF4565 #9AAF45 #45AF8F
split-complementary
#5A45AF #AF8F45 #65AF45
monochromatic
#2D2257 #433483 #5A45AF #7E6CC5 #A498D6
Accessibility & contrast
On white
7.23
#5A45AF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.91
#5A45AF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A45AF
7.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A45AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A45AF | 1.00 | 7.23 | 2.91 | 7.23 |
| #FFFFFF | 7.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0059B2
Deuteranopia (green-blind)
#0054AD
Tritanopia (blue-blind)
#3D5D73
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #5a45af; /* rgb */ color: rgb(90, 69, 175); /* oklch */ color: oklch(47.2% 0.162 287.7);
Tailwind
colors: {
custom: {
50: '#8f79c8',
500: '#5a45af',
950: '#000000',
},
}SCSS
$custom: #5a45af; $custom-light: #8f79c8; $custom-dark: #000000;
JSON
{
"hex": "#5a45af",
"rgb": {
"r": 90,
"g": 69,
"b": 175
},
"hsl": {
"h": 251.887,
"s": 43.443,
"l": 47.843
},
"oklch": {
"l": 0.47188,
"c": 0.16158,
"h": 287.7
},
"luminance": 0.09525
}Semantic roles & 50–950 ramp
primary
#5A45AF
secondary
#B8C28D
accent
#D355BA
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0913
muted
#7E7B82