#5842DE#5842DE

#5842DE is a mid, highly saturated blue. Relative luminance 0.112; OKLCH L 50.5% C 0.224 H 281.2°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#5842DE
RGBrgb(88, 66, 222)
HSLhsl(248, 70%, 56%)
HSVhsv(248, 70%, 87%)
CMYKcmyk(60.4%, 70.3%, 0%, 12.9%)
CIE-LABlab(39.99, 51.81, -76.29)
CIE-LCHlch(39.99, 92.22, 304.18°)
OKLaboklab(50.51% 0.0434 -0.2199)
OKLCHoklch(50.51% 0.224 281.2)
XYZxyz(19.1534, 11.2437, 70.2540)
Luminance0.1124 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5842DE #C8DE42
analogous
#427ADE #5842DE #A642DE
triadic
#5842DE #DE5842 #42DE58
tetradic
#5842DE #DE427A #C8DE42 #42DEA6
square
#5842DE #DE427A #C8DE42 #42DEA6
split-complementary
#5842DE #DEA642 #7ADE42
monochromatic
#29198D #3822C1 #5842DE #8676E7 #B4AAF0

Accessibility & contrast

On white

6.46
#5842DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#5842DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5842DE
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5842DE#FFFFFF#000000##FFFFFF
##5842DE1.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E3
Deuteranopia (green-blind)
#0058DB
Tritanopia (blue-blind)
#006C8B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5842de;
/* rgb */ color: rgb(88, 66, 222);
/* oklch */ color: oklch(50.5% 0.224 281.2);
Tailwind
colors: {
  custom: {
    50: '#9679ea',
    500: '#5842de',
    950: '#000000',
  },
}
SCSS
$custom: #5842de;
$custom-light: #9679ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5842de",
  "rgb": {
    "r": 88,
    "g": 66,
    "b": 222
  },
  "hsl": {
    "h": 248.462,
    "s": 70.27,
    "l": 56.471
  },
  "oklch": {
    "l": 0.50506,
    "c": 0.22417,
    "h": 281.2
  },
  "luminance": 0.11245
}

Semantic roles & 50–950 ramp

primary
#5842DE
secondary
#D5DE9E
accent
#ED3BD4
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5842DE

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

Preview Lab → · Contrast checker → · Palette generator →

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