#5A52BB#5A52BB
#5A52BB is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.3% C 0.160 H 282.4°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).
Color values
| HEX | #5A52BB |
|---|---|
| RGB | rgb(90, 82, 187) |
| HSL | hsl(245, 44%, 53%) |
| HSV | hsv(245, 56%, 73%) |
| CMYK | cmyk(51.9%, 56.1%, 0%, 26.7%) |
| CIE-LAB | lab(40.89, 32.02, -54.58) |
| CIE-LCH | lch(40.89, 63.28, 300.40°) |
| OKLab | oklab(50.34% 0.0345 -0.1561) |
| OKLCH | oklch(50.34% 0.16 282.4) |
| XYZ | xyz(16.2007, 11.7952, 48.4271) |
| Luminance | 0.1180 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 2.48
Slate Blue
#6A5ACD
ΔE00 4.32
Ocean Blue
#4F42B5
ΔE00 4.81
Light Indigo
#6D5ACF
ΔE00 4.84
Warm Blue
#4B57DB
ΔE00 5.23
Dark Periwinkle
#665FD1
ΔE00 5.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A52BB #B3BB52
analogous
#527FBB #5A52BB #8E52BB
triadic
#5A52BB #BB5A52 #52BB5A
tetradic
#5A52BB #BB527F #B3BB52 #52BB8E
square
#5A52BB #BB527F #B3BB52 #52BB8E
split-complementary
#5A52BB #BB8E52 #7FBB52
monochromatic
#2E2969 #423B95 #5A52BB #847ECC #AEAADE
Accessibility & contrast
On white
6.25
#5A52BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.36
#5A52BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A52BB
6.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A52BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A52BB | 1.00 | 6.25 | 3.36 | 6.25 |
| #FFFFFF | 6.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0864BF
Deuteranopia (green-blind)
#005DB9
Tritanopia (blue-blind)
#336A7E
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #5a52bb; /* rgb */ color: rgb(90, 82, 187); /* oklch */ color: oklch(50.3% 0.160 282.4);
Tailwind
colors: {
custom: {
50: '#9083d0',
500: '#5a52bb',
950: '#000000',
},
}SCSS
$custom: #5a52bb; $custom-light: #9083d0; $custom-dark: #000000;
JSON
{
"hex": "#5a52bb",
"rgb": {
"r": 90,
"g": 82,
"b": 187
},
"hsl": {
"h": 244.571,
"s": 43.568,
"l": 52.745
},
"oklch": {
"l": 0.50344,
"c": 0.15985,
"h": 282.4
},
"luminance": 0.11796
}Semantic roles & 50–950 ramp
primary
#5A52BB
secondary
#C8CB9E
accent
#D354CA
background
#F9F8FC
surface
#F2EFF9
border
#CCCAD2
text
#0D0A14
muted
#7E7C82