#5A52D7#5A52D7
#5A52D7 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 52.5% C 0.197 H 279.9°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).
Color values
| HEX | #5A52D7 |
|---|---|
| RGB | rgb(90, 82, 215) |
| HSL | hsl(244, 62%, 58%) |
| HSV | hsv(244, 62%, 84%) |
| CMYK | cmyk(58.1%, 61.9%, 0%, 15.7%) |
| CIE-LAB | lab(42.93, 40.85, -67.46) |
| CIE-LCH | lch(42.93, 78.87, 301.20°) |
| OKLab | oklab(52.5% 0.0337 -0.194) |
| OKLCH | oklch(52.5% 0.197 279.9) |
| XYZ | xyz(19.4956, 13.1132, 65.7806) |
| Luminance | 0.1311 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 2.80
Iris
#6258C4
ΔE00 3.35
Slate Blue
#6A5ACD
ΔE00 3.57
Light Indigo
#6D5ACF
ΔE00 3.86
Dark Periwinkle
#665FD1
ΔE00 4.19
Purpleish Blue
#6140EF
ΔE00 5.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A52D7 #CFD752
analogous
#528CD7 #5A52D7 #9C52D7
triadic
#5A52D7 #D75A52 #52D75A
tetradic
#5A52D7 #D7528C #CFD752 #52D79C
square
#5A52D7 #D7528C #CFD752 #52D79C
split-complementary
#5A52D7 #D79C52 #8CD752
monochromatic
#27218E #352CC0 #5A52D7 #8984E2 #B9B5EE
Accessibility & contrast
On white
5.80
#5A52D7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.62
#5A52D7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A52D7
5.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A52D7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A52D7 | 1.00 | 5.80 | 3.62 | 5.80 |
| #FFFFFF | 5.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006ADB
Deuteranopia (green-blind)
#0060D4
Tritanopia (blue-blind)
#01738D
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #5a52d7; /* rgb */ color: rgb(90, 82, 215); /* oklch */ color: oklch(52.5% 0.197 279.9);
Tailwind
colors: {
custom: {
50: '#9483e4',
500: '#5a52d7',
950: '#000000',
},
}SCSS
$custom: #5a52d7; $custom-light: #9483e4; $custom-dark: #000000;
JSON
{
"hex": "#5a52d7",
"rgb": {
"r": 90,
"g": 82,
"b": 215
},
"hsl": {
"h": 243.609,
"s": 62.441,
"l": 58.235
},
"oklch": {
"l": 0.52495,
"c": 0.19688,
"h": 279.9
},
"luminance": 0.13115
}Semantic roles & 50–950 ramp
primary
#5A52D7
secondary
#DADDA8
accent
#E642DC
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84