#5842DC#5842DC

#5842DC is a mid, highly saturated blue. Relative luminance 0.111; OKLCH L 50.3% C 0.222 H 281.4°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#5842DC
RGBrgb(88, 66, 220)
HSLhsl(249, 69%, 56%)
HSVhsv(249, 70%, 86%)
CMYKcmyk(60%, 70%, 0%, 13.7%)
CIE-LABlab(39.81, 51.21, -75.44)
CIE-LCHlch(39.81, 91.18, 304.17°)
OKLaboklab(50.33% 0.0437 -0.2174)
OKLCHoklch(50.33% 0.222 281.4)
XYZxyz(18.8869, 11.1371, 68.8507)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5842DC #C6DC42
analogous
#4279DC #5842DC #A542DC
triadic
#5842DC #DC5842 #42DC58
tetradic
#5842DC #DC4279 #C6DC42 #42DCA5
square
#5842DC #DC4279 #C6DC42 #42DCA5
split-complementary
#5842DC #DCA542 #79DC42
monochromatic
#2A1A8A #3923BE #5842DC #8676E6 #B3A9EF

Accessibility & contrast

On white

6.51
#5842DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#5842DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5842DC
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5842DC#FFFFFF#000000##FFFFFF
##5842DC1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E1
Deuteranopia (green-blind)
#0058D9
Tritanopia (blue-blind)
#006C8A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5842dc;
/* rgb */ color: rgb(88, 66, 220);
/* oklch */ color: oklch(50.3% 0.222 281.4);
Tailwind
colors: {
  custom: {
    50: '#9579e8',
    500: '#5842dc',
    950: '#000000',
  },
}
SCSS
$custom: #5842dc;
$custom-light: #9579e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5842dc",
  "rgb": {
    "r": 88,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 248.571,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.50325,
    "c": 0.22179,
    "h": 281.4
  },
  "luminance": 0.11138
}

Semantic roles & 50–950 ramp

primary
#5842DC
secondary
#D4DD9D
accent
#EC3CD3
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5842DC

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

Preview Lab → · Contrast checker → · Palette generator →

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