#5A52EE#5A52EE

#5A52EE is a mid, highly saturated blue. Relative luminance 0.144; OKLCH L 54.4% C 0.226 H 278.1°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#5A52EE
RGBrgb(90, 82, 238)
HSLhsl(243, 82%, 63%)
HSVhsv(243, 66%, 93%)
CMYKcmyk(62.2%, 65.5%, 0%, 6.7%)
CIE-LABlab(44.77, 48.09, -77.52)
CIE-LCHlch(44.77, 91.22, 301.82°)
OKLaboklab(54.4% 0.0317 -0.2235)
OKLCHoklch(54.4% 0.226 278.1)
XYZxyz(22.6614, 14.3795, 82.4537)
Luminance0.1438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A52EE #E6EE52
analogous
#5298EE #5A52EE #A852EE
triadic
#5A52EE #EE5A52 #52EE5A
tetradic
#5A52EE #EE5298 #E6EE52 #52EEA8
square
#5A52EE #EE5298 #E6EE52 #52EEA8
split-complementary
#5A52EE #EEA852 #98EE52
monochromatic
#1A12B4 #251AE9 #5A52EE #8F8AF3 #C4C1F9

Accessibility & contrast

On white

5.42
#5A52EE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#5A52EE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A52EE
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A52EE#FFFFFF#000000##FFFFFF
##5A52EE1.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070F3
Deuteranopia (green-blind)
#0063EB
Tritanopia (blue-blind)
#007B99
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5a52ee;
/* rgb */ color: rgb(90, 82, 238);
/* oklch */ color: oklch(54.4% 0.226 278.1);
Tailwind
colors: {
  custom: {
    50: '#9884f5',
    500: '#5a52ee',
    950: '#000000',
  },
}
SCSS
$custom: #5a52ee;
$custom-light: #9884f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a52ee",
  "rgb": {
    "r": 90,
    "g": 82,
    "b": 238
  },
  "hsl": {
    "h": 243.077,
    "s": 82.105,
    "l": 62.745
  },
  "oklch": {
    "l": 0.54404,
    "c": 0.22572,
    "h": 278.1
  },
  "luminance": 0.14381
}

Semantic roles & 50–950 ramp

primary
#5A52EE
secondary
#E7EAB2
accent
#DE07D3
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5A52EE

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

Preview Lab → · Contrast checker → · Palette generator →

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