#5831AD#5831AD

#5831AD is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.8% C 0.185 H 291.2°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#5831AD
RGBrgb(88, 49, 173)
HSLhsl(259, 56%, 44%)
HSVhsv(259, 72%, 68%)
CMYKcmyk(49.1%, 71.7%, 0%, 32.2%)
CIE-LABlab(32.45, 46.52, -60.02)
CIE-LCHlch(32.45, 75.93, 307.78°)
OKLaboklab(43.83% 0.0669 -0.1722)
OKLCHoklch(43.83% 0.185 291.2)
XYZxyz(12.6635, 7.2880, 40.2665)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5831AD #86AD31
analogous
#3148AD #5831AD #9631AD
triadic
#5831AD #AD5831 #31AD58
tetradic
#5831AD #AD3148 #86AD31 #31AD96
square
#5831AD #AD3148 #86AD31 #31AD96
split-complementary
#5831AD #AD9631 #48AD31
monochromatic
#27164E #40237D #5831AD #764ECD #9B7EDA

Accessibility & contrast

On white

8.54
#5831AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#5831AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5831AD
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5831AD#FFFFFF#000000##FFFFFF
##5831AD1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB1
Deuteranopia (green-blind)
#004AAB
Tritanopia (blue-blind)
#3C516C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5831ad;
/* rgb */ color: rgb(88, 49, 173);
/* oklch */ color: oklch(43.8% 0.185 291.2);
Tailwind
colors: {
  custom: {
    50: '#8f6dc6',
    500: '#5831ad',
    950: '#000000',
  },
}
SCSS
$custom: #5831ad;
$custom-light: #8f6dc6;
$custom-dark: #000000;
JSON
{
  "hex": "#5831ad",
  "rgb": {
    "r": 88,
    "g": 49,
    "b": 173
  },
  "hsl": {
    "h": 258.871,
    "s": 55.856,
    "l": 43.529
  },
  "oklch": {
    "l": 0.43826,
    "c": 0.18471,
    "h": 291.2
  },
  "luminance": 0.07288
}

Semantic roles & 50–950 ramp

primary
#5831AD
secondary
#ABC377
accent
#DF49B0
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5831AD

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

Preview Lab → · Contrast checker → · Palette generator →

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