#5842DA#5842DA

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

Color values

HEX#5842DA
RGBrgb(88, 66, 218)
HSLhsl(249, 67%, 56%)
HSVhsv(249, 70%, 85%)
CMYKcmyk(59.6%, 69.7%, 0%, 14.5%)
CIE-LABlab(39.63, 50.61, -74.58)
CIE-LCHlch(39.63, 90.13, 304.16°)
OKLaboklab(50.15% 0.0441 -0.2149)
OKLCHoklch(50.15% 0.219 281.6)
XYZxyz(18.6236, 11.0318, 67.4640)
Luminance0.1103 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5842DA #C4DA42
analogous
#4278DA #5842DA #A442DA
triadic
#5842DA #DA5842 #42DA58
tetradic
#5842DA #DA4278 #C4DA42 #42DAA4
square
#5842DA #DA4278 #C4DA42 #42DAA4
split-complementary
#5842DA #DAA442 #78DA42
monochromatic
#2A1A87 #3A24BA #5842DA #8575E4 #B2A8EE

Accessibility & contrast

On white

6.55
#5842DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#5842DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5842DA
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5842DA#FFFFFF#000000##FFFFFF
##5842DA1.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DF
Deuteranopia (green-blind)
#0058D7
Tritanopia (blue-blind)
#006B89
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5842da;
/* rgb */ color: rgb(88, 66, 218);
/* oklch */ color: oklch(50.1% 0.219 281.6);
Tailwind
colors: {
  custom: {
    50: '#9579e7',
    500: '#5842da',
    950: '#000000',
  },
}
SCSS
$custom: #5842da;
$custom-light: #9579e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5842da",
  "rgb": {
    "r": 88,
    "g": 66,
    "b": 218
  },
  "hsl": {
    "h": 248.684,
    "s": 67.257,
    "l": 55.686
  },
  "oklch": {
    "l": 0.50145,
    "c": 0.2194,
    "h": 281.6
  },
  "luminance": 0.11033
}

Semantic roles & 50–950 ramp

primary
#5842DA
secondary
#D2DB9C
accent
#EA3ED1
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5842DA

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

Preview Lab → · Contrast checker → · Palette generator →

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