#5842BC#5842BC

#5842BC is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.6% C 0.182 H 285.4°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#5842BC
RGBrgb(88, 66, 188)
HSLhsl(251, 48%, 50%)
HSVhsv(251, 65%, 74%)
CMYKcmyk(53.2%, 64.9%, 0%, 26.3%)
CIE-LABlab(37.12, 41.53, -61.29)
CIE-LCHlch(37.12, 74.04, 304.12°)
OKLaboklab(47.56% 0.0484 -0.1759)
OKLCHoklch(47.56% 0.182 285.4)
XYZxyz(15.0471, 9.6012, 48.6275)
Luminance0.0960 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5842BC #A6BC42
analogous
#4269BC #5842BC #9542BC
triadic
#5842BC #BC5842 #42BC58
tetradic
#5842BC #BC4269 #A6BC42 #42BC95
square
#5842BC #BC4269 #A6BC42 #42BC95
split-complementary
#5842BC #BC9542 #69BC42
monochromatic
#2E2261 #43328F #5842BC #806FCC #A89CDC

Accessibility & contrast

On white

7.19
#5842BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5842BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5842BC
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5842BC#FFFFFF#000000##FFFFFF
##5842BC1.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC0
Deuteranopia (green-blind)
#0054BA
Tritanopia (blue-blind)
#2F6079
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5842bc;
/* rgb */ color: rgb(88, 66, 188);
/* oklch */ color: oklch(47.6% 0.182 285.4);
Tailwind
colors: {
  custom: {
    50: '#9078d1',
    500: '#5842bc',
    950: '#000000',
  },
}
SCSS
$custom: #5842bc;
$custom-light: #9078d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5842bc",
  "rgb": {
    "r": 88,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 250.82,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.47558,
    "c": 0.18249,
    "h": 285.4
  },
  "luminance": 0.09602
}

Semantic roles & 50–950 ramp

primary
#5842BC
secondary
#BFC991
accent
#D850BF
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5842BC

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

Preview Lab → · Contrast checker → · Palette generator →

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