#5852EE#5852EE

#5852EE is a mid, highly saturated blue. Relative luminance 0.143; OKLCH L 54.3% C 0.226 H 277.4°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#5852EE
RGBrgb(88, 82, 238)
HSLhsl(242, 82%, 63%)
HSVhsv(242, 66%, 93%)
CMYKcmyk(63%, 65.5%, 0%, 6.7%)
CIE-LABlab(44.63, 47.82, -77.75)
CIE-LCHlch(44.63, 91.28, 301.59°)
OKLaboklab(54.27% 0.0293 -0.2242)
OKLCHoklch(54.27% 0.226 277.4)
XYZxyz(22.4694, 14.2805, 82.4447)
Luminance0.1428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5852EE #E8EE52
analogous
#529AEE #5852EE #A652EE
triadic
#5852EE #EE5852 #52EE58
tetradic
#5852EE #EE529A #E8EE52 #52EEA6
square
#5852EE #EE529A #E8EE52 #52EEA6
split-complementary
#5852EE #EEA652 #9AEE52
monochromatic
#1812B4 #221AE9 #5852EE #8E8AF3 #C4C1F9

Accessibility & contrast

On white

5.45
#5852EE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#5852EE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5852EE
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5852EE#FFFFFF#000000##FFFFFF
##5852EE1.005.453.865.45
#FFFFFF5.451.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.451.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: #5852ee;
/* rgb */ color: rgb(88, 82, 238);
/* oklch */ color: oklch(54.3% 0.226 277.4);
Tailwind
colors: {
  custom: {
    50: '#9783f5',
    500: '#5852ee',
    950: '#000000',
  },
}
SCSS
$custom: #5852ee;
$custom-light: #9783f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5852ee",
  "rgb": {
    "r": 88,
    "g": 82,
    "b": 238
  },
  "hsl": {
    "h": 242.308,
    "s": 82.105,
    "l": 62.745
  },
  "oklch": {
    "l": 0.54267,
    "c": 0.22612,
    "h": 277.4
  },
  "luminance": 0.14282
}

Semantic roles & 50–950 ramp

primary
#5852EE
secondary
#E8EAB2
accent
#DE07D6
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5852EE

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

Preview Lab → · Contrast checker → · Palette generator →

#5852EE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva