#5F52EA#5F52EA
#5F52EA is a mid, highly saturated blue. Relative luminance 0.144; OKLCH L 54.4% C 0.220 H 280.0°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).
Color values
| HEX | #5F52EA |
|---|---|
| RGB | rgb(95, 82, 234) |
| HSL | hsl(245, 78%, 62%) |
| HSV | hsv(245, 65%, 92%) |
| CMYK | cmyk(59.4%, 65%, 0%, 8.2%) |
| CIE-LAB | lab(44.81, 47.57, -75.19) |
| CIE-LCH | lch(44.81, 88.97, 302.32°) |
| OKLab | oklab(54.42% 0.0383 -0.2165) |
| OKLCH | oklch(54.42% 0.22 280) |
| XYZ | xyz(22.5832, 14.4064, 79.4166) |
| Luminance | 0.1441 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Warm Blue
#4B57DB
ΔE00 3.98
Purpleish Blue
#6140EF
ΔE00 4.23
Light Indigo
#6D5ACF
ΔE00 4.51
Slate Blue
#6A5ACD
ΔE00 4.54
Dark Periwinkle
#665FD1
ΔE00 4.83
Iris
#6258C4
ΔE00 5.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F52EA #DDEA52
analogous
#5291EA #5F52EA #AB52EA
triadic
#5F52EA #EA5F52 #52EA5F
tetradic
#5F52EA #EA5291 #DDEA52 #52EAAB
square
#5F52EA #EA5291 #DDEA52 #52EAAB
split-complementary
#5F52EA #EAAB52 #91EA52
monochromatic
#2215AD #2D1CE3 #5F52EA #9189F1 #C4BFF7
Accessibility & contrast
On white
5.41
#5F52EA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.88
#5F52EA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5F52EA
5.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F52EA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F52EA | 1.00 | 5.41 | 3.88 | 5.41 |
| #FFFFFF | 5.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0070EF
Deuteranopia (green-blind)
#0064E7
Tritanopia (blue-blind)
#007997
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #5f52ea; /* rgb */ color: rgb(95, 82, 234); /* oklch */ color: oklch(54.4% 0.220 280.0);
Tailwind
colors: {
custom: {
50: '#9a84f2',
500: '#5f52ea',
950: '#000000',
},
}SCSS
$custom: #5f52ea; $custom-light: #9a84f2; $custom-dark: #000000;
JSON
{
"hex": "#5f52ea",
"rgb": {
"r": 95,
"g": 82,
"b": 234
},
"hsl": {
"h": 245.132,
"s": 78.351,
"l": 61.961
},
"oklch": {
"l": 0.54423,
"c": 0.21986,
"h": 280
},
"luminance": 0.14408
}Semantic roles & 50–950 ramp
primary
#5F52EA
secondary
#E3E8B0
accent
#DB0BC9
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B17
muted
#7F7C85