#5831AB#5831AB

#5831AB is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.7% C 0.182 H 291.7°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#5831AB
RGBrgb(88, 49, 171)
HSLhsl(259, 55%, 43%)
HSVhsv(259, 71%, 67%)
CMYKcmyk(48.5%, 71.3%, 0%, 32.9%)
CIE-LABlab(32.28, 45.96, -59.10)
CIE-LCHlch(32.28, 74.87, 307.87°)
OKLaboklab(43.65% 0.0673 -0.1695)
OKLCHoklch(43.65% 0.182 291.7)
XYZxyz(12.4714, 7.2112, 39.2550)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5831AB #84AB31
analogous
#3147AB #5831AB #9531AB
triadic
#5831AB #AB5831 #31AB58
tetradic
#5831AB #AB3147 #84AB31 #31AB95
square
#5831AB #AB3147 #84AB31 #31AB95
split-complementary
#5831AB #AB9531 #47AB31
monochromatic
#27164C #40237B #5831AB #764DCC #9A7DDA

Accessibility & contrast

On white

8.60
#5831AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5831AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5831AB
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5831AB#FFFFFF#000000##FFFFFF
##5831AB1.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAF
Deuteranopia (green-blind)
#0049A9
Tritanopia (blue-blind)
#3D506A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5831ab;
/* rgb */ color: rgb(88, 49, 171);
/* oklch */ color: oklch(43.7% 0.182 291.7);
Tailwind
colors: {
  custom: {
    50: '#8f6cc5',
    500: '#5831ab',
    950: '#000000',
  },
}
SCSS
$custom: #5831ab;
$custom-light: #8f6cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5831ab",
  "rgb": {
    "r": 88,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 259.18,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.43652,
    "c": 0.18235,
    "h": 291.7
  },
  "luminance": 0.07212
}

Semantic roles & 50–950 ramp

primary
#5831AB
secondary
#AAC275
accent
#DF49AF
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5831AB

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

Preview Lab → · Contrast checker → · Palette generator →

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