#5842BB#5842BB

#5842BB is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.5% C 0.181 H 285.5°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#5842BB
RGBrgb(88, 66, 187)
HSLhsl(251, 48%, 50%)
HSVhsv(251, 65%, 73%)
CMYKcmyk(52.9%, 64.7%, 0%, 26.7%)
CIE-LABlab(37.04, 41.23, -60.84)
CIE-LCHlch(37.04, 73.49, 304.13°)
OKLaboklab(47.48% 0.0485 -0.1746)
OKLCHoklch(47.48% 0.181 285.5)
XYZxyz(14.9397, 9.5582, 48.0618)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5842BB #A5BB42
analogous
#4269BB #5842BB #9542BB
triadic
#5842BB #BB5842 #42BB58
tetradic
#5842BB #BB4269 #A5BB42 #42BB95
square
#5842BB #BB4269 #A5BB42 #42BB95
split-complementary
#5842BB #BB9542 #69BB42
monochromatic
#2D2261 #43328E #5842BB #7F6ECC #A79CDC

Accessibility & contrast

On white

7.21
#5842BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5842BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5842BB
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5842BB#FFFFFF#000000##FFFFFF
##5842BB1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABF
Deuteranopia (green-blind)
#0053B9
Tritanopia (blue-blind)
#306078
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5842bb;
/* rgb */ color: rgb(88, 66, 187);
/* oklch */ color: oklch(47.5% 0.181 285.5);
Tailwind
colors: {
  custom: {
    50: '#9078d0',
    500: '#5842bb',
    950: '#000000',
  },
}
SCSS
$custom: #5842bb;
$custom-light: #9078d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5842bb",
  "rgb": {
    "r": 88,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 250.909,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.47476,
    "c": 0.18122,
    "h": 285.5
  },
  "luminance": 0.09559
}

Semantic roles & 50–950 ramp

primary
#5842BB
secondary
#BEC891
accent
#D750BF
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #5842BB

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

Preview Lab → · Contrast checker → · Palette generator →

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