#5842D8#5842D8

#5842D8 is a mid, highly saturated blue. Relative luminance 0.109; OKLCH L 50.0% C 0.217 H 281.8°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#5842D8
RGBrgb(88, 66, 216)
HSLhsl(249, 66%, 55%)
HSVhsv(249, 69%, 85%)
CMYKcmyk(59.3%, 69.4%, 0%, 15.3%)
CIE-LABlab(39.46, 50.01, -73.72)
CIE-LCHlch(39.46, 89.08, 304.15°)
OKLaboklab(49.97% 0.0444 -0.2124)
OKLCHoklch(49.97% 0.217 281.8)
XYZxyz(18.3635, 10.9277, 66.0940)
Luminance0.1093 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5842D8 #C2D842
analogous
#4277D8 #5842D8 #A342D8
triadic
#5842D8 #D85842 #42D858
tetradic
#5842D8 #D84277 #C2D842 #42D8A3
square
#5842D8 #D84277 #C2D842 #42D8A3
split-complementary
#5842D8 #D8A342 #77D842
monochromatic
#2B1B84 #3B26B7 #5842D8 #8575E2 #B2A7ED

Accessibility & contrast

On white

6.59
#5842D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#5842D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5842D8
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5842D8#FFFFFF#000000##FFFFFF
##5842D81.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062DD
Deuteranopia (green-blind)
#0058D5
Tritanopia (blue-blind)
#006A88
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5842d8;
/* rgb */ color: rgb(88, 66, 216);
/* oklch */ color: oklch(50.0% 0.217 281.8);
Tailwind
colors: {
  custom: {
    50: '#9578e5',
    500: '#5842d8',
    950: '#000000',
  },
}
SCSS
$custom: #5842d8;
$custom-light: #9578e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5842d8",
  "rgb": {
    "r": 88,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 248.8,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.49966,
    "c": 0.21701,
    "h": 281.8
  },
  "luminance": 0.10929
}

Semantic roles & 50–950 ramp

primary
#5842D8
secondary
#D1DA9C
accent
#E93FD0
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5842D8

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

Preview Lab → · Contrast checker → · Palette generator →

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