#5840BB#5840BB

#5840BB is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.2% C 0.184 H 285.9°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#5840BB
RGBrgb(88, 64, 187)
HSLhsl(252, 49%, 49%)
HSVhsv(252, 66%, 73%)
CMYKcmyk(52.9%, 65.8%, 0%, 26.7%)
CIE-LABlab(36.61, 42.38, -61.53)
CIE-LCHlch(36.61, 74.72, 304.56°)
OKLaboklab(47.17% 0.0505 -0.1766)
OKLCHoklch(47.17% 0.184 285.9)
XYZxyz(14.8249, 9.3286, 48.0235)
Luminance0.0933 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5840BB #A3BB40
analogous
#4066BB #5840BB #9640BB
triadic
#5840BB #BB5840 #40BB58
tetradic
#5840BB #BB4066 #A3BB40 #40BB96
square
#5840BB #BB4066 #A3BB40 #40BB96
split-complementary
#5840BB #BB9640 #66BB40
monochromatic
#2D2160 #43308D #5840BB #7F6CCD #A699DC

Accessibility & contrast

On white

7.33
#5840BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5840BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5840BB
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5840BB#FFFFFF#000000##FFFFFF
##5840BB1.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BF
Deuteranopia (green-blind)
#0052B9
Tritanopia (blue-blind)
#305F78
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5840bb;
/* rgb */ color: rgb(88, 64, 187);
/* oklch */ color: oklch(47.2% 0.184 285.9);
Tailwind
colors: {
  custom: {
    50: '#9076d0',
    500: '#5840bb',
    950: '#000000',
  },
}
SCSS
$custom: #5840bb;
$custom-light: #9076d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5840bb",
  "rgb": {
    "r": 88,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 251.707,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.47166,
    "c": 0.18372,
    "h": 285.9
  },
  "luminance": 0.09329
}

Semantic roles & 50–950 ramp

primary
#5840BB
secondary
#BDC88F
accent
#D94FBE
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5840BB

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

Preview Lab → · Contrast checker → · Palette generator →

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