#5831AE#5831AE

#5831AE is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.9% C 0.186 H 291.0°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#5831AE
RGBrgb(88, 49, 174)
HSLhsl(259, 56%, 44%)
HSVhsv(259, 72%, 68%)
CMYKcmyk(49.4%, 71.8%, 0%, 31.8%)
CIE-LABlab(32.54, 46.80, -60.47)
CIE-LCHlch(32.54, 76.47, 307.74°)
OKLaboklab(43.91% 0.0667 -0.1735)
OKLCHoklch(43.91% 0.186 291)
XYZxyz(12.7606, 7.3268, 40.7781)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5831AE #87AE31
analogous
#3148AE #5831AE #9631AE
triadic
#5831AE #AE5831 #31AE58
tetradic
#5831AE #AE3148 #87AE31 #31AE96
square
#5831AE #AE3148 #87AE31 #31AE96
split-complementary
#5831AE #AE9631 #48AE31
monochromatic
#28164E #40247E #5831AE #764FCD #9B7FDB

Accessibility & contrast

On white

8.52
#5831AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5831AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5831AE
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5831AE#FFFFFF#000000##FFFFFF
##5831AE1.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB2
Deuteranopia (green-blind)
#004AAC
Tritanopia (blue-blind)
#3C526C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5831ae;
/* rgb */ color: rgb(88, 49, 174);
/* oklch */ color: oklch(43.9% 0.186 291.0);
Tailwind
colors: {
  custom: {
    50: '#8f6dc7',
    500: '#5831ae',
    950: '#000000',
  },
}
SCSS
$custom: #5831ae;
$custom-light: #8f6dc7;
$custom-dark: #000000;
JSON
{
  "hex": "#5831ae",
  "rgb": {
    "r": 88,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 258.72,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43914,
    "c": 0.18589,
    "h": 291
  },
  "luminance": 0.07327
}

Semantic roles & 50–950 ramp

primary
#5831AE
secondary
#ACC477
accent
#DF48B0
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5831AE

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

Preview Lab → · Contrast checker → · Palette generator →

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