#5B31AC#5B31AC

#5B31AC is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.0% C 0.184 H 292.9°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#5B31AC
RGBrgb(91, 49, 172)
HSLhsl(260, 56%, 43%)
HSVhsv(260, 72%, 67%)
CMYKcmyk(47.1%, 71.5%, 0%, 32.5%)
CIE-LABlab(32.70, 46.76, -59.00)
CIE-LCHlch(32.70, 75.29, 308.40°)
OKLaboklab(44.05% 0.0715 -0.1691)
OKLCHoklch(44.05% 0.184 292.9)
XYZxyz(12.8570, 7.3989, 39.7724)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B31AC #82AC31
analogous
#3144AC #5B31AC #9831AC
triadic
#5B31AC #AC5B31 #31AC5B
tetradic
#5B31AC #AC3144 #82AC31 #31AC98
square
#5B31AC #AC3144 #82AC31 #31AC98
split-complementary
#5B31AC #AC9831 #44AC31
monochromatic
#29164D #42237C #5B31AC #794ECC #9D7DDA

Accessibility & contrast

On white

8.47
#5B31AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5B31AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B31AC
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B31AC#FFFFFF#000000##FFFFFF
##5B31AC1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB0
Deuteranopia (green-blind)
#004BAA
Tritanopia (blue-blind)
#42516B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5b31ac;
/* rgb */ color: rgb(91, 49, 172);
/* oklch */ color: oklch(44.0% 0.184 292.9);
Tailwind
colors: {
  custom: {
    50: '#916dc6',
    500: '#5b31ac',
    950: '#000000',
  },
}
SCSS
$custom: #5b31ac;
$custom-light: #916dc6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b31ac",
  "rgb": {
    "r": 91,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 260.488,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.4405,
    "c": 0.18359,
    "h": 292.9
  },
  "luminance": 0.07399
}

Semantic roles & 50–950 ramp

primary
#5B31AC
secondary
#A9C376
accent
#DF49AC
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B31AC

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

Preview Lab → · Contrast checker → · Palette generator →

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