#5B31AA#5B31AA

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

Color values

HEX#5B31AA
RGBrgb(91, 49, 170)
HSLhsl(261, 55%, 43%)
HSVhsv(261, 71%, 67%)
CMYKcmyk(46.5%, 71.2%, 0%, 33.3%)
CIE-LABlab(32.53, 46.21, -58.08)
CIE-LCHlch(32.53, 74.22, 308.51°)
OKLaboklab(43.88% 0.0719 -0.1664)
OKLCHoklch(43.88% 0.181 293.4)
XYZxyz(12.6664, 7.3227, 38.7685)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B31AA #80AA31
analogous
#3144AA #5B31AA #9731AA
triadic
#5B31AA #AA5B31 #31AA5B
tetradic
#5B31AA #AA3144 #80AA31 #31AA97
square
#5B31AA #AA3144 #80AA31 #31AA97
split-complementary
#5B31AA #AA9731 #44AA31
monochromatic
#28164B #42237A #5B31AA #794DCC #9C7CD9

Accessibility & contrast

On white

8.52
#5B31AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#5B31AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B31AA
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B31AA#FFFFFF#000000##FFFFFF
##5B31AA1.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAE
Deuteranopia (green-blind)
#004AA8
Tritanopia (blue-blind)
#44506A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5b31aa;
/* rgb */ color: rgb(91, 49, 170);
/* oklch */ color: oklch(43.9% 0.181 293.4);
Tailwind
colors: {
  custom: {
    50: '#916dc4',
    500: '#5b31aa',
    950: '#000000',
  },
}
SCSS
$custom: #5b31aa;
$custom-light: #916dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b31aa",
  "rgb": {
    "r": 91,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 260.826,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43879,
    "c": 0.18125,
    "h": 293.4
  },
  "luminance": 0.07323
}

Semantic roles & 50–950 ramp

primary
#5B31AA
secondary
#A7C275
accent
#DF49AB
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5B31AA

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

Preview Lab → · Contrast checker → · Palette generator →

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