#5842D9#5842D9

#5842D9 is a mid, highly saturated blue. Relative luminance 0.110; OKLCH L 50.1% C 0.218 H 281.7°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#5842D9
RGBrgb(88, 66, 217)
HSLhsl(249, 67%, 55%)
HSVhsv(249, 70%, 85%)
CMYKcmyk(59.4%, 69.6%, 0%, 14.9%)
CIE-LABlab(39.55, 50.31, -74.15)
CIE-LCHlch(39.55, 89.61, 304.15°)
OKLaboklab(50.06% 0.0443 -0.2137)
OKLCHoklch(50.06% 0.218 281.7)
XYZxyz(18.4932, 10.9796, 66.7770)
Luminance0.1098 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5842D9 #C3D942
analogous
#4277D9 #5842D9 #A442D9
triadic
#5842D9 #D95842 #42D958
tetradic
#5842D9 #D94277 #C3D942 #42D9A4
square
#5842D9 #D94277 #C3D942 #42D9A4
split-complementary
#5842D9 #D9A442 #77D942
monochromatic
#2A1B86 #3B25B9 #5842D9 #8575E3 #B2A8ED

Accessibility & contrast

On white

6.57
#5842D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#5842D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5842D9
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5842D9#FFFFFF#000000##FFFFFF
##5842D91.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062DE
Deuteranopia (green-blind)
#0058D6
Tritanopia (blue-blind)
#006A89
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5842d9;
/* rgb */ color: rgb(88, 66, 217);
/* oklch */ color: oklch(50.1% 0.218 281.7);
Tailwind
colors: {
  custom: {
    50: '#9579e6',
    500: '#5842d9',
    950: '#000000',
  },
}
SCSS
$custom: #5842d9;
$custom-light: #9579e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5842d9",
  "rgb": {
    "r": 88,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 248.742,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.50056,
    "c": 0.21821,
    "h": 281.7
  },
  "luminance": 0.10981
}

Semantic roles & 50–950 ramp

primary
#5842D9
secondary
#D2DB9C
accent
#E93ED1
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5842D9

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

Preview Lab → · Contrast checker → · Palette generator →

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