#5A52EA#5A52EA

#5A52EA is a mid, highly saturated blue. Relative luminance 0.141; OKLCH L 54.1% C 0.221 H 278.4°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#5A52EA
RGBrgb(90, 82, 234)
HSLhsl(243, 78%, 62%)
HSVhsv(243, 65%, 92%)
CMYKcmyk(61.5%, 65%, 0%, 8.2%)
CIE-LABlab(44.44, 46.84, -75.80)
CIE-LCHlch(44.44, 89.10, 301.71°)
OKLaboklab(54.06% 0.0321 -0.2184)
OKLCHoklch(54.06% 0.221 278.4)
XYZxyz(22.0803, 14.1470, 79.3930)
Luminance0.1415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A52EA #E2EA52
analogous
#5296EA #5A52EA #A652EA
triadic
#5A52EA #EA5A52 #52EA5A
tetradic
#5A52EA #EA5296 #E2EA52 #52EAA6
square
#5A52EA #EA5296 #E2EA52 #52EAA6
split-complementary
#5A52EA #EAA652 #96EA52
monochromatic
#1D15AD #261CE3 #5A52EA #8E89F1 #C2BFF7

Accessibility & contrast

On white

5.48
#5A52EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#5A52EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A52EA
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A52EA#FFFFFF#000000##FFFFFF
##5A52EA1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEF
Deuteranopia (green-blind)
#0063E7
Tritanopia (blue-blind)
#007997
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5a52ea;
/* rgb */ color: rgb(90, 82, 234);
/* oklch */ color: oklch(54.1% 0.221 278.4);
Tailwind
colors: {
  custom: {
    50: '#9783f2',
    500: '#5a52ea',
    950: '#000000',
  },
}
SCSS
$custom: #5a52ea;
$custom-light: #9783f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a52ea",
  "rgb": {
    "r": 90,
    "g": 82,
    "b": 234
  },
  "hsl": {
    "h": 243.158,
    "s": 78.351,
    "l": 61.961
  },
  "oklch": {
    "l": 0.54064,
    "c": 0.2208,
    "h": 278.4
  },
  "luminance": 0.14149
}

Semantic roles & 50–950 ramp

primary
#5A52EA
secondary
#E5E8B0
accent
#DB0BD0
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5A52EA

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#5A52EA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva