#5840AD#5840AD

#5840AD is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.0% C 0.166 H 288.2°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#5840AD
RGBrgb(88, 64, 173)
HSLhsl(253, 46%, 46%)
HSVhsv(253, 63%, 68%)
CMYKcmyk(49.1%, 63%, 0%, 32.2%)
CIE-LABlab(35.51, 38.18, -55.03)
CIE-LCHlch(35.51, 66.98, 304.75°)
OKLaboklab(46.03% 0.0519 -0.1575)
OKLCHoklch(46.03% 0.166 288.2)
XYZxyz(13.3985, 8.7581, 40.5116)
Luminance0.0876 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5840AD #95AD40
analogous
#405FAD #5840AD #8F40AD
triadic
#5840AD #AD5840 #40AD58
tetradic
#5840AD #AD405F #95AD40 #40AD8F
square
#5840AD #AD405F #95AD40 #40AD8F
split-complementary
#5840AD #AD8F40 #5FAD40
monochromatic
#2B1F54 #412F80 #5840AD #7A64C6 #A091D6

Accessibility & contrast

On white

7.63
#5840AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5840AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5840AD
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5840AD#FFFFFF#000000##FFFFFF
##5840AD1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B0
Deuteranopia (green-blind)
#0051AB
Tritanopia (blue-blind)
#3B5A70
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5840ad;
/* rgb */ color: rgb(88, 64, 173);
/* oklch */ color: oklch(46.0% 0.166 288.2);
Tailwind
colors: {
  custom: {
    50: '#8e76c6',
    500: '#5840ad',
    950: '#000000',
  },
}
SCSS
$custom: #5840ad;
$custom-light: #8e76c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5840ad",
  "rgb": {
    "r": 88,
    "g": 64,
    "b": 173
  },
  "hsl": {
    "h": 253.211,
    "s": 45.992,
    "l": 46.471
  },
  "oklch": {
    "l": 0.46028,
    "c": 0.16586,
    "h": 288.2
  },
  "luminance": 0.08759
}

Semantic roles & 50–950 ramp

primary
#5840AD
secondary
#B5C287
accent
#D652B9
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5840AD

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

Preview Lab → · Contrast checker → · Palette generator →

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