#5A31AE#5A31AE

#5A31AE is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.1% C 0.186 H 292.0°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#5A31AE
RGBrgb(90, 49, 174)
HSLhsl(260, 56%, 44%)
HSVhsv(260, 72%, 68%)
CMYKcmyk(48.3%, 71.8%, 0%, 31.8%)
CIE-LABlab(32.76, 47.14, -60.11)
CIE-LCHlch(32.76, 76.39, 308.11°)
OKLaboklab(44.12% 0.0696 -0.1724)
OKLCHoklch(44.12% 0.186 292)
XYZxyz(12.9526, 7.4258, 40.7871)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A31AE #85AE31
analogous
#3146AE #5A31AE #9831AE
triadic
#5A31AE #AE5A31 #31AE5A
tetradic
#5A31AE #AE3146 #85AE31 #31AE98
square
#5A31AE #AE3146 #85AE31 #31AE98
split-complementary
#5A31AE #AE9831 #46AE31
monochromatic
#29164E #41247E #5A31AE #784FCD #9D7FDB

Accessibility & contrast

On white

8.45
#5A31AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#5A31AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A31AE
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A31AE#FFFFFF#000000##FFFFFF
##5A31AE1.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB2
Deuteranopia (green-blind)
#004AAC
Tritanopia (blue-blind)
#3F516C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5a31ae;
/* rgb */ color: rgb(90, 49, 174);
/* oklch */ color: oklch(44.1% 0.186 292.0);
Tailwind
colors: {
  custom: {
    50: '#916dc7',
    500: '#5a31ae',
    950: '#000000',
  },
}
SCSS
$custom: #5a31ae;
$custom-light: #916dc7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a31ae",
  "rgb": {
    "r": 90,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 259.68,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44119,
    "c": 0.18591,
    "h": 292
  },
  "luminance": 0.07426
}

Semantic roles & 50–950 ramp

primary
#5A31AE
secondary
#ABC477
accent
#DF48AE
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A31AE

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

Preview Lab → · Contrast checker → · Palette generator →

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