#5852E7#5852E7

#5852E7 is a mid, highly saturated blue. Relative luminance 0.139; OKLCH L 53.7% C 0.217 H 277.9°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#5852E7
RGBrgb(88, 82, 231)
HSLhsl(242, 76%, 61%)
HSVhsv(242, 65%, 91%)
CMYKcmyk(61.9%, 64.5%, 0%, 9.4%)
CIE-LABlab(44.06, 45.60, -74.74)
CIE-LCHlch(44.06, 87.56, 301.39°)
OKLaboklab(53.67% 0.03 -0.2154)
OKLCHoklch(53.67% 0.217 277.9)
XYZxyz(21.4610, 13.8771, 77.1334)
Luminance0.1388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5852E7 #E1E752
analogous
#5297E7 #5852E7 #A352E7
triadic
#5852E7 #E75852 #52E758
tetradic
#5852E7 #E75297 #E1E752 #52E7A3
square
#5852E7 #E75297 #E1E752 #52E7A3
split-complementary
#5852E7 #E7A352 #97E752
monochromatic
#1D17A7 #261FDD #5852E7 #8C88EE #C0BDF6

Accessibility & contrast

On white

5.56
#5852E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#5852E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5852E7
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5852E7#FFFFFF#000000##FFFFFF
##5852E71.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EEC
Deuteranopia (green-blind)
#0062E4
Tritanopia (blue-blind)
#007895
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5852e7;
/* rgb */ color: rgb(88, 82, 231);
/* oklch */ color: oklch(53.7% 0.217 277.9);
Tailwind
colors: {
  custom: {
    50: '#9683f0',
    500: '#5852e7',
    950: '#000000',
  },
}
SCSS
$custom: #5852e7;
$custom-light: #9683f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5852e7",
  "rgb": {
    "r": 88,
    "g": 82,
    "b": 231
  },
  "hsl": {
    "h": 242.416,
    "s": 75.635,
    "l": 61.373
  },
  "oklch": {
    "l": 0.53671,
    "c": 0.21748,
    "h": 277.9
  },
  "luminance": 0.13879
}

Semantic roles & 50–950 ramp

primary
#5852E7
secondary
#E4E6AF
accent
#D80ED0
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5852E7

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

Preview Lab → · Contrast checker → · Palette generator →

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