#5842BF#5842BF

#5842BF is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.8% C 0.186 H 285.0°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#5842BF
RGBrgb(88, 66, 191)
HSLhsl(251, 49%, 50%)
HSVhsv(251, 65%, 75%)
CMYKcmyk(53.9%, 65.4%, 0%, 25.1%)
CIE-LABlab(37.36, 42.44, -62.66)
CIE-LCHlch(37.36, 75.68, 304.11°)
OKLaboklab(47.81% 0.0481 -0.18)
OKLCHoklch(47.81% 0.186 285)
XYZxyz(15.3739, 9.7319, 50.3485)
Luminance0.0973 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5842BF #A9BF42
analogous
#426ABF #5842BF #9642BF
triadic
#5842BF #BF5842 #42BF58
tetradic
#5842BF #BF426A #A9BF42 #42BF96
square
#5842BF #BF426A #A9BF42 #42BF96
split-complementary
#5842BF #BF9642 #6ABF42
monochromatic
#2E2265 #433292 #5842BF #8070CE #A99DDE

Accessibility & contrast

On white

7.13
#5842BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#5842BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5842BF
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5842BF#FFFFFF#000000##FFFFFF
##5842BF1.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC3
Deuteranopia (green-blind)
#0054BD
Tritanopia (blue-blind)
#2C617B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5842bf;
/* rgb */ color: rgb(88, 66, 191);
/* oklch */ color: oklch(47.8% 0.186 285.0);
Tailwind
colors: {
  custom: {
    50: '#9178d3',
    500: '#5842bf',
    950: '#000000',
  },
}
SCSS
$custom: #5842bf;
$custom-light: #9178d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5842bf",
  "rgb": {
    "r": 88,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 250.56,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47806,
    "c": 0.18628,
    "h": 285
  },
  "luminance": 0.09733
}

Semantic roles & 50–950 ramp

primary
#5842BF
secondary
#C0CA93
accent
#D94FC1
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5842BF

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

Preview Lab → · Contrast checker → · Palette generator →

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