#5840CC#5840CC

#5840CC is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 48.6% C 0.205 H 283.6°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#5840CC
RGBrgb(88, 64, 204)
HSLhsl(250, 58%, 53%)
HSVhsv(250, 69%, 80%)
CMYKcmyk(56.9%, 68.6%, 0%, 20%)
CIE-LABlab(38.02, 47.49, -69.15)
CIE-LCHlch(38.02, 83.89, 304.48°)
OKLaboklab(48.62% 0.048 -0.199)
OKLCHoklch(48.62% 0.205 283.6)
XYZxyz(16.7536, 10.1001, 58.1817)
Luminance0.1010 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5840CC #B4CC40
analogous
#406ECC #5840CC #9E40CC
triadic
#5840CC #CC5840 #40CC58
tetradic
#5840CC #CC406E #B4CC40 #40CC9E
square
#5840CC #CC406E #B4CC40 #40CC9E
split-complementary
#5840CC #CC9E40 #6ECC40
monochromatic
#2D1F73 #402CA3 #5840CC #8270D9 #ACA1E6

Accessibility & contrast

On white

6.95
#5840CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#5840CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5840CC
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5840CC#FFFFFF#000000##FFFFFF
##5840CC1.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED0
Deuteranopia (green-blind)
#0055C9
Tritanopia (blue-blind)
#1A6581
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5840cc;
/* rgb */ color: rgb(88, 64, 204);
/* oklch */ color: oklch(48.6% 0.205 283.6);
Tailwind
colors: {
  custom: {
    50: '#9377dd',
    500: '#5840cc',
    950: '#000000',
  },
}
SCSS
$custom: #5840cc;
$custom-light: #9377dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5840cc",
  "rgb": {
    "r": 88,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 250.286,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.48619,
    "c": 0.20474,
    "h": 283.6
  },
  "luminance": 0.10101
}

Semantic roles & 50–950 ramp

primary
#5840CC
secondary
#C8D295
accent
#E147C7
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5840CC

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

Preview Lab → · Contrast checker → · Palette generator →

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