#5A319F#5A319F

#5A319F is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.8% C 0.168 H 295.5°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#5A319F
RGBrgb(90, 49, 159)
HSLhsl(262, 53%, 41%)
HSVhsv(262, 69%, 62%)
CMYKcmyk(43.4%, 69.2%, 0%, 37.6%)
CIE-LABlab(31.52, 43.00, -53.11)
CIE-LCHlch(31.52, 68.33, 308.99°)
OKLaboklab(42.85% 0.0724 -0.1518)
OKLCHoklch(42.85% 0.168 295.5)
XYZxyz(11.5711, 6.8732, 33.5112)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A319F #769F31
analogous
#313F9F #5A319F #91319F
triadic
#5A319F #9F5A31 #319F5A
tetradic
#5A319F #9F313F #769F31 #319F91
square
#5A319F #9F313F #769F31 #319F91
split-complementary
#5A319F #9F9131 #3F9F31
monochromatic
#251441 #402370 #5A319F #7647C6 #9976D5

Accessibility & contrast

On white

8.84
#5A319F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A319F
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A319F#FFFFFF#000000##FFFFFF
##5A319F1.008.842.378.84
#FFFFFF8.841.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA2
Deuteranopia (green-blind)
#00499D
Tritanopia (blue-blind)
#484C64
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5a319f;
/* rgb */ color: rgb(90, 49, 159);
/* oklch */ color: oklch(42.8% 0.168 295.5);
Tailwind
colors: {
  custom: {
    50: '#8f6cbc',
    500: '#5a319f',
    950: '#000000',
  },
}
SCSS
$custom: #5a319f;
$custom-light: #8f6cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a319f",
  "rgb": {
    "r": 90,
    "g": 49,
    "b": 159
  },
  "hsl": {
    "h": 262.364,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42849,
    "c": 0.16818,
    "h": 295.5
  },
  "luminance": 0.06873
}

Semantic roles & 50–950 ramp

primary
#5A319F
secondary
#A0BD6F
accent
#DC4CA6
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A319F

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

Preview Lab → · Contrast checker → · Palette generator →

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