#5842E2#5842E2

#5842E2 is a mid, highly saturated blue. Relative luminance 0.115; OKLCH L 50.9% C 0.229 H 280.7°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#5842E2
RGBrgb(88, 66, 226)
HSLhsl(248, 73%, 57%)
HSVhsv(248, 71%, 89%)
CMYKcmyk(61.1%, 70.8%, 0%, 11.4%)
CIE-LABlab(40.35, 53.01, -77.99)
CIE-LCHlch(40.35, 94.30, 304.21°)
OKLaboklab(50.87% 0.0426 -0.2249)
OKLCHoklch(50.87% 0.229 280.7)
XYZxyz(19.6959, 11.4607, 73.1110)
Luminance0.1146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5842E2 #CCE242
analogous
#427CE2 #5842E2 #A842E2
triadic
#5842E2 #E25842 #42E258
tetradic
#5842E2 #E2427C #CCE242 #42E2A8
square
#5842E2 #E2427C #CCE242 #42E2A8
split-complementary
#5842E2 #E2A842 #7CE242
monochromatic
#281793 #361FC8 #5842E2 #8777EA #B6ACF2

Accessibility & contrast

On white

6.38
#5842E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#5842E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5842E2
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5842E2#FFFFFF#000000##FFFFFF
##5842E21.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E7
Deuteranopia (green-blind)
#0059DF
Tritanopia (blue-blind)
#006E8E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5842e2;
/* rgb */ color: rgb(88, 66, 226);
/* oklch */ color: oklch(50.9% 0.229 280.7);
Tailwind
colors: {
  custom: {
    50: '#9679ec',
    500: '#5842e2',
    950: '#000000',
  },
}
SCSS
$custom: #5842e2;
$custom-light: #9679ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5842e2",
  "rgb": {
    "r": 88,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 248.25,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.5087,
    "c": 0.22889,
    "h": 280.7
  },
  "luminance": 0.11462
}

Semantic roles & 50–950 ramp

primary
#5842E2
secondary
#D7E09F
accent
#F038D7
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5842E2

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

Preview Lab → · Contrast checker → · Palette generator →

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