#5B31AE#5B31AE

#5B31AE is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.2% C 0.186 H 292.5°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#5B31AE
RGBrgb(91, 49, 174)
HSLhsl(260, 56%, 44%)
HSVhsv(260, 72%, 68%)
CMYKcmyk(47.7%, 71.8%, 0%, 31.8%)
CIE-LABlab(32.87, 47.31, -59.92)
CIE-LCHlch(32.87, 76.35, 308.29°)
OKLaboklab(44.22% 0.0711 -0.1718)
OKLCHoklch(44.22% 0.186 292.5)
XYZxyz(13.0505, 7.4763, 40.7916)
Luminance0.0748 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B31AE #84AE31
analogous
#3145AE #5B31AE #9931AE
triadic
#5B31AE #AE5B31 #31AE5B
tetradic
#5B31AE #AE3145 #84AE31 #31AE99
square
#5B31AE #AE3145 #84AE31 #31AE99
split-complementary
#5B31AE #AE9931 #45AE31
monochromatic
#29164E #42247E #5B31AE #794FCD #9E7FDB

Accessibility & contrast

On white

8.42
#5B31AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#5B31AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B31AE
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B31AE#FFFFFF#000000##FFFFFF
##5B31AE1.008.422.508.42
#FFFFFF8.421.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB2
Deuteranopia (green-blind)
#004BAC
Tritanopia (blue-blind)
#41516C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5b31ae;
/* rgb */ color: rgb(91, 49, 174);
/* oklch */ color: oklch(44.2% 0.186 292.5);
Tailwind
colors: {
  custom: {
    50: '#916dc7',
    500: '#5b31ae',
    950: '#000000',
  },
}
SCSS
$custom: #5b31ae;
$custom-light: #916dc7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b31ae",
  "rgb": {
    "r": 91,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 260.16,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44223,
    "c": 0.18593,
    "h": 292.5
  },
  "luminance": 0.07477
}

Semantic roles & 50–950 ramp

primary
#5B31AE
secondary
#AAC477
accent
#DF48AD
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B31AE

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

Preview Lab → · Contrast checker → · Palette generator →

#5B31AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva