#5840CE#5840CE

#5840CE is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 48.8% C 0.207 H 283.3°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#5840CE
RGBrgb(88, 64, 206)
HSLhsl(250, 59%, 53%)
HSVhsv(250, 69%, 81%)
CMYKcmyk(57.3%, 68.9%, 0%, 19.2%)
CIE-LABlab(38.19, 48.09, -70.03)
CIE-LCHlch(38.19, 84.96, 304.48°)
OKLaboklab(48.8% 0.0477 -0.2016)
OKLCHoklch(48.8% 0.207 283.3)
XYZxyz(16.9950, 10.1967, 59.4532)
Luminance0.1020 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5840CE #B6CE40
analogous
#406FCE #5840CE #9F40CE
triadic
#5840CE #CE5840 #40CE58
tetradic
#5840CE #CE406F #B6CE40 #40CE9F
square
#5840CE #CE406F #B6CE40 #40CE9F
split-complementary
#5840CE #CE9F40 #6FCE40
monochromatic
#2D1E75 #402BA6 #5840CE #8371DA #ADA1E7

Accessibility & contrast

On white

6.91
#5840CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#5840CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5840CE
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5840CE#FFFFFF#000000##FFFFFF
##5840CE1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED2
Deuteranopia (green-blind)
#0055CB
Tritanopia (blue-blind)
#166582
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5840ce;
/* rgb */ color: rgb(88, 64, 206);
/* oklch */ color: oklch(48.8% 0.207 283.3);
Tailwind
colors: {
  custom: {
    50: '#9377de',
    500: '#5840ce',
    950: '#000000',
  },
}
SCSS
$custom: #5840ce;
$custom-light: #9377de;
$custom-dark: #000000;
JSON
{
  "hex": "#5840ce",
  "rgb": {
    "r": 88,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 250.141,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.48795,
    "c": 0.20716,
    "h": 283.3
  },
  "luminance": 0.10198
}

Semantic roles & 50–950 ramp

primary
#5840CE
secondary
#C9D496
accent
#E245C8
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5840CE

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

Preview Lab → · Contrast checker → · Palette generator →

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