#5842CF#5842CF

#5842CF is a mid, highly saturated blue. Relative luminance 0.105; OKLCH L 49.2% C 0.206 H 282.9°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#5842CF
RGBrgb(88, 66, 207)
HSLhsl(249, 59%, 54%)
HSVhsv(249, 68%, 81%)
CMYKcmyk(57.5%, 68.1%, 0%, 18.8%)
CIE-LABlab(38.68, 47.29, -69.81)
CIE-LCHlch(38.68, 84.32, 304.11°)
OKLaboklab(49.17% 0.0459 -0.2009)
OKLCHoklch(49.17% 0.206 282.9)
XYZxyz(17.2317, 10.4750, 60.1332)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5842CF #B9CF42
analogous
#4272CF #5842CF #9E42CF
triadic
#5842CF #CF5842 #42CF58
tetradic
#5842CF #CF4272 #B9CF42 #42CF9E
square
#5842CF #CF4272 #B9CF42 #42CF9E
split-complementary
#5842CF #CF9E42 #72CF42
monochromatic
#2C1F78 #3F2BA9 #5842CF #8373DB #AEA4E8

Accessibility & contrast

On white

6.78
#5842CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#5842CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5842CF
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5842CF#FFFFFF#000000##FFFFFF
##5842CF1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D3
Deuteranopia (green-blind)
#0056CC
Tritanopia (blue-blind)
#146783
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5842cf;
/* rgb */ color: rgb(88, 66, 207);
/* oklch */ color: oklch(49.2% 0.206 282.9);
Tailwind
colors: {
  custom: {
    50: '#9378df',
    500: '#5842cf',
    950: '#000000',
  },
}
SCSS
$custom: #5842cf;
$custom-light: #9378df;
$custom-dark: #000000;
JSON
{
  "hex": "#5842cf",
  "rgb": {
    "r": 88,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 249.362,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49171,
    "c": 0.20613,
    "h": 282.9
  },
  "luminance": 0.10476
}

Semantic roles & 50–950 ramp

primary
#5842CF
secondary
#CBD598
accent
#E345CA
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5842CF

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

Preview Lab → · Contrast checker → · Palette generator →

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