#5A52CB#5A52CB
#5A52CB is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.5% C 0.181 H 280.9°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).
Color values
| HEX | #5A52CB |
|---|---|
| RGB | rgb(90, 82, 203) |
| HSL | hsl(244, 54%, 56%) |
| HSV | hsv(244, 60%, 80%) |
| CMYK | cmyk(55.7%, 59.6%, 0%, 20.4%) |
| CIE-LAB | lab(42.03, 37.06, -62.03) |
| CIE-LCH | lch(42.03, 72.26, 300.85°) |
| OKLab | oklab(51.55% 0.0343 -0.178) |
| OKLCH | oklch(51.55% 0.181 280.9) |
| XYZ | xyz(18.0099, 12.5189, 57.9557) |
| Luminance | 0.1252 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 2.36
Slate Blue
#6A5ACD
ΔE00 3.44
Warm Blue
#4B57DB
ΔE00 3.46
Light Indigo
#6D5ACF
ΔE00 3.89
Dark Periwinkle
#665FD1
ΔE00 4.32
Bluey Purple
#6241C7
ΔE00 5.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A52CB #C3CB52
analogous
#5286CB #5A52CB #9652CB
triadic
#5A52CB #CB5A52 #52CB5A
tetradic
#5A52CB #CB5286 #C3CB52 #52CB96
square
#5A52CB #CB5286 #C3CB52 #52CB96
split-complementary
#5A52CB #CB9652 #86CB52
monochromatic
#2B267D #3C34AC #5A52CB #8781D9 #B4B0E7
Accessibility & contrast
On white
5.99
#5A52CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.50
#5A52CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A52CB
5.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A52CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A52CB | 1.00 | 5.99 | 3.50 | 5.99 |
| #FFFFFF | 5.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0068CF
Deuteranopia (green-blind)
#005FC9
Tritanopia (blue-blind)
#216F86
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #5a52cb; /* rgb */ color: rgb(90, 82, 203); /* oklch */ color: oklch(51.5% 0.181 280.9);
Tailwind
colors: {
custom: {
50: '#9283dc',
500: '#5a52cb',
950: '#000000',
},
}SCSS
$custom: #5a52cb; $custom-light: #9283dc; $custom-dark: #000000;
JSON
{
"hex": "#5a52cb",
"rgb": {
"r": 90,
"g": 82,
"b": 203
},
"hsl": {
"h": 243.967,
"s": 53.778,
"l": 55.882
},
"oklch": {
"l": 0.51548,
"c": 0.18129,
"h": 280.9
},
"luminance": 0.1252
}Semantic roles & 50–950 ramp
primary
#5A52CB
secondary
#D2D5A3
accent
#DD4BD3
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83