#5A319B#5A319B

#5A319B is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.5% C 0.163 H 296.5°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#5A319B
RGBrgb(90, 49, 155)
HSLhsl(263, 52%, 40%)
HSVhsv(263, 68%, 61%)
CMYKcmyk(41.9%, 68.4%, 0%, 39.2%)
CIE-LABlab(31.20, 41.90, -51.19)
CIE-LCHlch(31.20, 66.15, 309.30°)
OKLaboklab(42.52% 0.073 -0.1462)
OKLCHoklch(42.52% 0.163 296.5)
XYZxyz(11.2296, 6.7366, 31.7126)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A319B #729B31
analogous
#313D9B #5A319B #8F319B
triadic
#5A319B #9B5A31 #319B5A
tetradic
#5A319B #9B313D #729B31 #319B8F
square
#5A319B #9B313D #729B31 #319B8F
split-complementary
#5A319B #9B8F31 #3D9B31
monochromatic
#24143E #3F226D #5A319B #7645C4 #9873D3

Accessibility & contrast

On white

8.95
#5A319B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5A319B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A319B
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A319B#FFFFFF#000000##FFFFFF
##5A319B1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9E
Deuteranopia (green-blind)
#004899
Tritanopia (blue-blind)
#494A62
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a319b;
/* rgb */ color: rgb(90, 49, 155);
/* oklch */ color: oklch(42.5% 0.163 296.5);
Tailwind
colors: {
  custom: {
    50: '#8e6cb9',
    500: '#5a319b',
    950: '#000000',
  },
}
SCSS
$custom: #5a319b;
$custom-light: #8e6cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a319b",
  "rgb": {
    "r": 90,
    "g": 49,
    "b": 155
  },
  "hsl": {
    "h": 263.208,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.42523,
    "c": 0.16339,
    "h": 296.5
  },
  "luminance": 0.06737
}

Semantic roles & 50–950 ramp

primary
#5A319B
secondary
#9DBB6D
accent
#DB4CA4
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A319B

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

Preview Lab → · Contrast checker → · Palette generator →

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