#5842D7#5842D7

#5842D7 is a mid, highly saturated blue. Relative luminance 0.109; OKLCH L 49.9% C 0.216 H 281.9°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#5842D7
RGBrgb(88, 66, 215)
HSLhsl(249, 65%, 55%)
HSVhsv(249, 69%, 84%)
CMYKcmyk(59.1%, 69.3%, 0%, 15.7%)
CIE-LABlab(39.37, 49.71, -73.29)
CIE-LCHlch(39.37, 88.56, 304.14°)
OKLaboklab(49.88% 0.0446 -0.2111)
OKLCHoklch(49.88% 0.216 281.9)
XYZxyz(18.2346, 10.8762, 65.4152)
Luminance0.1088 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5842D7 #C1D742
analogous
#4276D7 #5842D7 #A242D7
triadic
#5842D7 #D75842 #42D758
tetradic
#5842D7 #D74276 #C1D742 #42D7A2
square
#5842D7 #D74276 #C1D742 #42D7A2
split-complementary
#5842D7 #D7A242 #76D742
monochromatic
#2B1C83 #3C26B5 #5842D7 #8575E2 #B1A7EC

Accessibility & contrast

On white

6.61
#5842D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#5842D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5842D7
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5842D7#FFFFFF#000000##FFFFFF
##5842D71.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062DB
Deuteranopia (green-blind)
#0057D4
Tritanopia (blue-blind)
#006A88
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5842d7;
/* rgb */ color: rgb(88, 66, 215);
/* oklch */ color: oklch(49.9% 0.216 281.9);
Tailwind
colors: {
  custom: {
    50: '#9478e5',
    500: '#5842d7',
    950: '#000000',
  },
}
SCSS
$custom: #5842d7;
$custom-light: #9478e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5842d7",
  "rgb": {
    "r": 88,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 248.859,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.49877,
    "c": 0.21581,
    "h": 281.9
  },
  "luminance": 0.10877
}

Semantic roles & 50–950 ramp

primary
#5842D7
secondary
#D0DA9B
accent
#E840CF
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5842D7

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

Preview Lab → · Contrast checker → · Palette generator →

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