#5A319E#5A319E

#5A319E is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.8% C 0.167 H 295.8°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#5A319E
RGBrgb(90, 49, 158)
HSLhsl(263, 53%, 41%)
HSVhsv(263, 69%, 62%)
CMYKcmyk(43%, 69%, 0%, 38%)
CIE-LABlab(31.44, 42.72, -52.63)
CIE-LCHlch(31.44, 67.79, 309.07°)
OKLaboklab(42.77% 0.0726 -0.1504)
OKLCHoklch(42.77% 0.167 295.8)
XYZxyz(11.4847, 6.8387, 33.0560)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A319E #759E31
analogous
#313E9E #5A319E #90319E
triadic
#5A319E #9E5A31 #319E5A
tetradic
#5A319E #9E313E #759E31 #319E90
square
#5A319E #9E313E #759E31 #319E90
split-complementary
#5A319E #9E9031 #3E9E31
monochromatic
#251441 #3F236F #5A319E #7646C6 #9975D4

Accessibility & contrast

On white

8.87
#5A319E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5A319E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A319E
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A319E#FFFFFF#000000##FFFFFF
##5A319E1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA1
Deuteranopia (green-blind)
#00489C
Tritanopia (blue-blind)
#484B63
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5a319e;
/* rgb */ color: rgb(90, 49, 158);
/* oklch */ color: oklch(42.8% 0.167 295.8);
Tailwind
colors: {
  custom: {
    50: '#8e6cbb',
    500: '#5a319e',
    950: '#000000',
  },
}
SCSS
$custom: #5a319e;
$custom-light: #8e6cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a319e",
  "rgb": {
    "r": 90,
    "g": 49,
    "b": 158
  },
  "hsl": {
    "h": 262.569,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42767,
    "c": 0.16699,
    "h": 295.8
  },
  "luminance": 0.06839
}

Semantic roles & 50–950 ramp

primary
#5A319E
secondary
#9FBC6E
accent
#DC4CA6
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A319E

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

Preview Lab → · Contrast checker → · Palette generator →

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