#5A31AB#5A31AB

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

Color values

HEX#5A31AB
RGBrgb(90, 49, 171)
HSLhsl(260, 55%, 43%)
HSVhsv(260, 71%, 67%)
CMYKcmyk(47.4%, 71.3%, 0%, 32.9%)
CIE-LABlab(32.50, 46.31, -58.73)
CIE-LCHlch(32.50, 74.79, 308.26°)
OKLaboklab(43.86% 0.0703 -0.1683)
OKLCHoklch(43.86% 0.182 292.7)
XYZxyz(12.6634, 7.3101, 39.2640)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A31AB #82AB31
analogous
#3145AB #5A31AB #9731AB
triadic
#5A31AB #AB5A31 #31AB5A
tetradic
#5A31AB #AB3145 #82AB31 #31AB97
square
#5A31AB #AB3145 #82AB31 #31AB97
split-complementary
#5A31AB #AB9731 #45AB31
monochromatic
#28164C #41237B #5A31AB #784DCC #9C7DDA

Accessibility & contrast

On white

8.53
#5A31AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A31AB
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A31AB#FFFFFF#000000##FFFFFF
##5A31AB1.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAF
Deuteranopia (green-blind)
#004AA9
Tritanopia (blue-blind)
#41506A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5a31ab;
/* rgb */ color: rgb(90, 49, 171);
/* oklch */ color: oklch(43.9% 0.182 292.7);
Tailwind
colors: {
  custom: {
    50: '#906dc5',
    500: '#5a31ab',
    950: '#000000',
  },
}
SCSS
$custom: #5a31ab;
$custom-light: #906dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a31ab",
  "rgb": {
    "r": 90,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 260.164,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.4386,
    "c": 0.18239,
    "h": 292.7
  },
  "luminance": 0.07311
}

Semantic roles & 50–950 ramp

primary
#5A31AB
secondary
#A9C275
accent
#DF49AC
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5A31AB

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

Preview Lab → · Contrast checker → · Palette generator →

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