#5A31AA#5A31AA

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

Color values

HEX#5A31AA
RGBrgb(90, 49, 170)
HSLhsl(260, 55%, 43%)
HSVhsv(260, 71%, 67%)
CMYKcmyk(47.1%, 71.2%, 0%, 33.3%)
CIE-LABlab(32.42, 46.03, -58.27)
CIE-LCHlch(32.42, 74.26, 308.31°)
OKLaboklab(43.77% 0.0705 -0.167)
OKLCHoklch(43.77% 0.181 292.9)
XYZxyz(12.5685, 7.2722, 38.7639)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A31AA #81AA31
analogous
#3144AA #5A31AA #9731AA
triadic
#5A31AA #AA5A31 #31AA5A
tetradic
#5A31AA #AA3144 #81AA31 #31AA97
square
#5A31AA #AA3144 #81AA31 #31AA97
split-complementary
#5A31AA #AA9731 #44AA31
monochromatic
#28164B #41237A #5A31AA #784DCC #9C7CD9

Accessibility & contrast

On white

8.56
#5A31AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5A31AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A31AA
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A31AA#FFFFFF#000000##FFFFFF
##5A31AA1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a31aa;
/* rgb */ color: rgb(90, 49, 170);
/* oklch */ color: oklch(43.8% 0.181 292.9);
Tailwind
colors: {
  custom: {
    50: '#906dc4',
    500: '#5a31aa',
    950: '#000000',
  },
}
SCSS
$custom: #5a31aa;
$custom-light: #906dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a31aa",
  "rgb": {
    "r": 90,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 260.331,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43774,
    "c": 0.18121,
    "h": 292.9
  },
  "luminance": 0.07273
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A31AA

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

Preview Lab → · Contrast checker → · Palette generator →

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