#5A52E8#5A52E8

#5A52E8 is a mid, highly saturated blue. Relative luminance 0.140; OKLCH L 53.9% C 0.218 H 278.5°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#5A52E8
RGBrgb(90, 82, 232)
HSLhsl(243, 77%, 62%)
HSVhsv(243, 65%, 91%)
CMYKcmyk(61.2%, 64.7%, 0%, 9%)
CIE-LABlab(44.28, 46.21, -74.94)
CIE-LCHlch(44.28, 88.04, 301.66°)
OKLaboklab(53.9% 0.0323 -0.2159)
OKLCHoklch(53.9% 0.218 278.5)
XYZxyz(21.7946, 14.0328, 77.8884)
Luminance0.1403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A52E8 #E0E852
analogous
#5295E8 #5A52E8 #A552E8
triadic
#5A52E8 #E85A52 #52E85A
tetradic
#5A52E8 #E85295 #E0E852 #52E8A5
square
#5A52E8 #E85295 #E0E852 #52E8A5
split-complementary
#5A52E8 #E8A552 #95E852
monochromatic
#1E16A9 #281EDF #5A52E8 #8E88EF #C1BEF6

Accessibility & contrast

On white

5.52
#5A52E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#5A52E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A52E8
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A52E8#FFFFFF#000000##FFFFFF
##5A52E81.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FED
Deuteranopia (green-blind)
#0063E5
Tritanopia (blue-blind)
#007996
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5a52e8;
/* rgb */ color: rgb(90, 82, 232);
/* oklch */ color: oklch(53.9% 0.218 278.5);
Tailwind
colors: {
  custom: {
    50: '#9783f0',
    500: '#5a52e8',
    950: '#000000',
  },
}
SCSS
$custom: #5a52e8;
$custom-light: #9783f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a52e8",
  "rgb": {
    "r": 90,
    "g": 82,
    "b": 232
  },
  "hsl": {
    "h": 243.2,
    "s": 76.531,
    "l": 61.569
  },
  "oklch": {
    "l": 0.53895,
    "c": 0.21832,
    "h": 278.5
  },
  "luminance": 0.14034
}

Semantic roles & 50–950 ramp

primary
#5A52E8
secondary
#E4E7AF
accent
#D90DCE
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5A52E8

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

Preview Lab → · Contrast checker → · Palette generator →

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