#5842CA#5842CA

#5842CA is a mid, highly saturated blue. Relative luminance 0.102; OKLCH L 48.7% C 0.200 H 283.5°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#5842CA
RGBrgb(88, 66, 202)
HSLhsl(250, 56%, 53%)
HSVhsv(250, 67%, 79%)
CMYKcmyk(56.4%, 67.3%, 0%, 20.8%)
CIE-LABlab(38.26, 45.78, -67.60)
CIE-LCHlch(38.26, 81.64, 304.10°)
OKLaboklab(48.74% 0.0466 -0.1945)
OKLCHoklch(48.74% 0.2 283.5)
XYZxyz(16.6301, 10.2344, 56.9648)
Luminance0.1023 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5842CA #B4CA42
analogous
#4270CA #5842CA #9C42CA
triadic
#5842CA #CA5842 #42CA58
tetradic
#5842CA #CA4270 #B4CA42 #42CA9C
square
#5842CA #CA4270 #B4CA42 #42CA9C
split-complementary
#5842CA #CA9C42 #70CA42
monochromatic
#2D2072 #402DA2 #5842CA #8272D7 #ACA2E5

Accessibility & contrast

On white

6.89
#5842CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#5842CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5842CA
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5842CA#FFFFFF#000000##FFFFFF
##5842CA1.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECE
Deuteranopia (green-blind)
#0056C7
Tritanopia (blue-blind)
#1E6580
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5842ca;
/* rgb */ color: rgb(88, 66, 202);
/* oklch */ color: oklch(48.7% 0.200 283.5);
Tailwind
colors: {
  custom: {
    50: '#9278db',
    500: '#5842ca',
    950: '#000000',
  },
}
SCSS
$custom: #5842ca;
$custom-light: #9278db;
$custom-dark: #000000;
JSON
{
  "hex": "#5842ca",
  "rgb": {
    "r": 88,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 249.706,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.48738,
    "c": 0.2,
    "h": 283.5
  },
  "luminance": 0.10235
}

Semantic roles & 50–950 ramp

primary
#5842CA
secondary
#C8D196
accent
#DF48C7
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5842CA

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

Preview Lab → · Contrast checker → · Palette generator →

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