#5842CE#5842CE

#5842CE is a mid, highly saturated blue. Relative luminance 0.104; OKLCH L 49.1% C 0.205 H 283.0°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#5842CE
RGBrgb(88, 66, 206)
HSLhsl(249, 59%, 53%)
HSVhsv(249, 68%, 81%)
CMYKcmyk(57.3%, 68%, 0%, 19.2%)
CIE-LABlab(38.60, 46.99, -69.37)
CIE-LCHlch(38.60, 83.79, 304.11°)
OKLaboklab(49.08% 0.0461 -0.1997)
OKLCHoklch(49.08% 0.205 283)
XYZxyz(17.1099, 10.4263, 59.4914)
Luminance0.1043 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5842CE #B8CE42
analogous
#4272CE #5842CE #9E42CE
triadic
#5842CE #CE5842 #42CE58
tetradic
#5842CE #CE4272 #B8CE42 #42CE9E
square
#5842CE #CE4272 #B8CE42 #42CE9E
split-complementary
#5842CE #CE9E42 #72CE42
monochromatic
#2D1F77 #3F2BA7 #5842CE #8373DB #AEA3E7

Accessibility & contrast

On white

6.81
#5842CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#5842CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5842CE
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5842CE#FFFFFF#000000##FFFFFF
##5842CE1.006.813.096.81
#FFFFFF6.811.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD2
Deuteranopia (green-blind)
#0056CB
Tritanopia (blue-blind)
#166683
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5842ce;
/* rgb */ color: rgb(88, 66, 206);
/* oklch */ color: oklch(49.1% 0.205 283.0);
Tailwind
colors: {
  custom: {
    50: '#9378de',
    500: '#5842ce',
    950: '#000000',
  },
}
SCSS
$custom: #5842ce;
$custom-light: #9378de;
$custom-dark: #000000;
JSON
{
  "hex": "#5842ce",
  "rgb": {
    "r": 88,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 249.429,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.49084,
    "c": 0.2049,
    "h": 283
  },
  "luminance": 0.10427
}

Semantic roles & 50–950 ramp

primary
#5842CE
secondary
#CBD498
accent
#E246C9
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5842CE

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

Preview Lab → · Contrast checker → · Palette generator →

#5842CE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva