#5840CB#5840CB

#5840CB is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 48.5% C 0.204 H 283.7°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#5840CB
RGBrgb(88, 64, 203)
HSLhsl(250, 57%, 52%)
HSVhsv(250, 68%, 80%)
CMYKcmyk(56.7%, 68.5%, 0%, 20.4%)
CIE-LABlab(37.94, 47.19, -68.71)
CIE-LCHlch(37.94, 83.36, 304.48°)
OKLaboklab(48.53% 0.0482 -0.1977)
OKLCHoklch(48.53% 0.204 283.7)
XYZxyz(16.6341, 10.0523, 57.5521)
Luminance0.1005 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5840CB #B3CB40
analogous
#406DCB #5840CB #9E40CB
triadic
#5840CB #CB5840 #40CB58
tetradic
#5840CB #CB406D #B3CB40 #40CB9E
square
#5840CB #CB406D #B3CB40 #40CB9E
split-complementary
#5840CB #CB9E40 #6DCB40
monochromatic
#2D1F72 #402CA2 #5840CB #8270D8 #ACA0E5

Accessibility & contrast

On white

6.98
#5840CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#5840CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5840CB
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5840CB#FFFFFF#000000##FFFFFF
##5840CB1.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECF
Deuteranopia (green-blind)
#0055C8
Tritanopia (blue-blind)
#1C6480
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5840cb;
/* rgb */ color: rgb(88, 64, 203);
/* oklch */ color: oklch(48.5% 0.204 283.7);
Tailwind
colors: {
  custom: {
    50: '#9377dc',
    500: '#5840cb',
    950: '#000000',
  },
}
SCSS
$custom: #5840cb;
$custom-light: #9377dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5840cb",
  "rgb": {
    "r": 88,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 250.36,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.48531,
    "c": 0.20352,
    "h": 283.7
  },
  "luminance": 0.10053
}

Semantic roles & 50–950 ramp

primary
#5840CB
secondary
#C7D295
accent
#E047C6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5840CB

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

Preview Lab → · Contrast checker → · Palette generator →

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