#5A52C8#5A52C8
#5A52C8 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.3% C 0.177 H 281.2°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).
Color values
| HEX | #5A52C8 |
|---|---|
| RGB | rgb(90, 82, 200) |
| HSL | hsl(244, 52%, 55%) |
| HSV | hsv(244, 59%, 78%) |
| CMYK | cmyk(55%, 59%, 0%, 21.6%) |
| CIE-LAB | lab(41.81, 36.11, -60.66) |
| CIE-LCH | lch(41.81, 70.59, 300.77°) |
| OKLab | oklab(51.32% 0.0344 -0.174) |
| OKLCH | oklch(51.32% 0.177 281.2) |
| XYZ | xyz(17.6558, 12.3773, 56.0911) |
| Luminance | 0.1238 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 2.22
Slate Blue
#6A5ACD
ΔE00 3.52
Warm Blue
#4B57DB
ΔE00 3.73
Light Indigo
#6D5ACF
ΔE00 3.99
Dark Periwinkle
#665FD1
ΔE00 4.44
Bluey Purple
#6241C7
ΔE00 5.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A52C8 #C0C852
analogous
#5285C8 #5A52C8 #9552C8
triadic
#5A52C8 #C85A52 #52C85A
tetradic
#5A52C8 #C85285 #C0C852 #52C895
square
#5A52C8 #C85285 #C0C852 #52C895
split-complementary
#5A52C8 #C89552 #85C852
monochromatic
#2C2779 #3D35A8 #5A52C8 #8680D7 #B3AFE6
Accessibility & contrast
On white
6.04
#5A52C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.48
#5A52C8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A52C8
6.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A52C8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A52C8 | 1.00 | 6.04 | 3.48 | 6.04 |
| #FFFFFF | 6.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0067CC
Deuteranopia (green-blind)
#005EC6
Tritanopia (blue-blind)
#256E85
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #5a52c8; /* rgb */ color: rgb(90, 82, 200); /* oklch */ color: oklch(51.3% 0.177 281.2);
Tailwind
colors: {
custom: {
50: '#9283d9',
500: '#5a52c8',
950: '#000000',
},
}SCSS
$custom: #5a52c8; $custom-light: #9283d9; $custom-dark: #000000;
JSON
{
"hex": "#5a52c8",
"rgb": {
"r": 90,
"g": 82,
"b": 200
},
"hsl": {
"h": 244.068,
"s": 51.754,
"l": 55.294
},
"oklch": {
"l": 0.51317,
"c": 0.17733,
"h": 281.2
},
"luminance": 0.12378
}Semantic roles & 50–950 ramp
primary
#5A52C8
secondary
#D0D4A2
accent
#DB4DD2
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83