#5842CD#5842CD

#5842CD is a mid, highly saturated blue. Relative luminance 0.104; OKLCH L 49.0% C 0.204 H 283.1°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#5842CD
RGBrgb(88, 66, 205)
HSLhsl(249, 58%, 53%)
HSVhsv(249, 68%, 80%)
CMYKcmyk(57.1%, 67.8%, 0%, 19.6%)
CIE-LABlab(38.51, 46.69, -68.93)
CIE-LCHlch(38.51, 83.25, 304.11°)
OKLaboklab(49% 0.0462 -0.1984)
OKLCHoklch(49% 0.204 283.1)
XYZxyz(16.9888, 10.3778, 58.8537)
Luminance0.1038 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5842CD #B7CD42
analogous
#4272CD #5842CD #9D42CD
triadic
#5842CD #CD5842 #42CD58
tetradic
#5842CD #CD4272 #B7CD42 #42CD9D
square
#5842CD #CD4272 #B7CD42 #42CD9D
split-complementary
#5842CD #CD9D42 #72CD42
monochromatic
#2D1F76 #3F2CA6 #5842CD #8372DA #AEA3E7

Accessibility & contrast

On white

6.83
#5842CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5842CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5842CD
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5842CD#FFFFFF#000000##FFFFFF
##5842CD1.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD1
Deuteranopia (green-blind)
#0056CA
Tritanopia (blue-blind)
#186682
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5842cd;
/* rgb */ color: rgb(88, 66, 205);
/* oklch */ color: oklch(49.0% 0.204 283.1);
Tailwind
colors: {
  custom: {
    50: '#9378dd',
    500: '#5842cd',
    950: '#000000',
  },
}
SCSS
$custom: #5842cd;
$custom-light: #9378dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5842cd",
  "rgb": {
    "r": 88,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 249.496,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.48997,
    "c": 0.20368,
    "h": 283.1
  },
  "luminance": 0.10379
}

Semantic roles & 50–950 ramp

primary
#5842CD
secondary
#CAD397
accent
#E146C9
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5842CD

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

Preview Lab → · Contrast checker → · Palette generator →

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