#5842D1#5842D1

#5842D1 is a mid, highly saturated blue. Relative luminance 0.106; OKLCH L 49.3% C 0.209 H 282.6°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#5842D1
RGBrgb(88, 66, 209)
HSLhsl(249, 61%, 54%)
HSVhsv(249, 68%, 82%)
CMYKcmyk(57.9%, 68.4%, 0%, 18%)
CIE-LABlab(38.85, 47.89, -70.69)
CIE-LCHlch(38.85, 85.38, 304.12°)
OKLaboklab(49.35% 0.0456 -0.2035)
OKLCHoklch(49.35% 0.209 282.6)
XYZxyz(17.4778, 10.5734, 61.4291)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5842D1 #BBD142
analogous
#4274D1 #5842D1 #A042D1
triadic
#5842D1 #D15842 #42D158
tetradic
#5842D1 #D14274 #BBD142 #42D1A0
square
#5842D1 #D14274 #BBD142 #42D1A0
split-complementary
#5842D1 #D1A042 #74D142
monochromatic
#2C1E7B #3E2AAC #5842D1 #8373DD #AFA4E9

Accessibility & contrast

On white

6.74
#5842D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#5842D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5842D1
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5842D1#FFFFFF#000000##FFFFFF
##5842D11.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D5
Deuteranopia (green-blind)
#0057CE
Tritanopia (blue-blind)
#0E6884
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5842d1;
/* rgb */ color: rgb(88, 66, 209);
/* oklch */ color: oklch(49.3% 0.209 282.6);
Tailwind
colors: {
  custom: {
    50: '#9378e0',
    500: '#5842d1',
    950: '#000000',
  },
}
SCSS
$custom: #5842d1;
$custom-light: #9378e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5842d1",
  "rgb": {
    "r": 88,
    "g": 66,
    "b": 209
  },
  "hsl": {
    "h": 249.231,
    "s": 60.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.49346,
    "c": 0.20856,
    "h": 282.6
  },
  "luminance": 0.10575
}

Semantic roles & 50–950 ramp

primary
#5842D1
secondary
#CDD699
accent
#E444CB
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5842D1

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

Preview Lab → · Contrast checker → · Palette generator →

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