#5A52BF#5A52BF
#5A52BF is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.6% C 0.165 H 282.0°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).
Color values
| HEX | #5A52BF |
|---|---|
| RGB | rgb(90, 82, 191) |
| HSL | hsl(244, 46%, 54%) |
| HSV | hsv(244, 57%, 75%) |
| CMYK | cmyk(52.9%, 57.1%, 0%, 25.1%) |
| CIE-LAB | lab(41.17, 33.27, -56.47) |
| CIE-LCH | lch(41.17, 65.54, 300.51°) |
| OKLab | oklab(50.64% 0.0345 -0.1616) |
| OKLCH | oklch(50.64% 0.165 282) |
| XYZ | xyz(16.6348, 11.9689, 50.7138) |
| Luminance | 0.1197 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 2.24
Slate Blue
#6A5ACD
ΔE00 4.00
Light Indigo
#6D5ACF
ΔE00 4.51
Warm Blue
#4B57DB
ΔE00 4.72
Ocean Blue
#4F42B5
ΔE00 4.91
Dark Periwinkle
#665FD1
ΔE00 4.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A52BF #B7BF52
analogous
#5280BF #5A52BF #9052BF
triadic
#5A52BF #BF5A52 #52BF5A
tetradic
#5A52BF #BF5280 #B7BF52 #52BF90
square
#5A52BF #BF5280 #B7BF52 #52BF90
split-complementary
#5A52BF #BF9052 #80BF52
monochromatic
#2E296E #40399B #5A52BF #857FD0 #AFABE0
Accessibility & contrast
On white
6.19
#5A52BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.39
#5A52BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A52BF
6.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A52BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A52BF | 1.00 | 6.19 | 3.39 | 6.19 |
| #FFFFFF | 6.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0065C3
Deuteranopia (green-blind)
#005DBD
Tritanopia (blue-blind)
#2F6B80
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #5a52bf; /* rgb */ color: rgb(90, 82, 191); /* oklch */ color: oklch(50.6% 0.165 282.0);
Tailwind
colors: {
custom: {
50: '#9183d3',
500: '#5a52bf',
950: '#000000',
},
}SCSS
$custom: #5a52bf; $custom-light: #9183d3; $custom-dark: #000000;
JSON
{
"hex": "#5a52bf",
"rgb": {
"r": 90,
"g": 82,
"b": 191
},
"hsl": {
"h": 244.404,
"s": 45.992,
"l": 53.529
},
"oklch": {
"l": 0.50638,
"c": 0.16528,
"h": 282
},
"luminance": 0.1197
}Semantic roles & 50–950 ramp
primary
#5A52BF
secondary
#CACE9F
accent
#D652CC
background
#F9F8FD
surface
#F2EFFA
border
#CCCAD3
text
#0D0A14
muted
#7E7C83