#5A319A#5A319A

#5A319A is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.4% C 0.162 H 296.8°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#5A319A
RGBrgb(90, 49, 154)
HSLhsl(263, 52%, 40%)
HSVhsv(263, 68%, 60%)
CMYKcmyk(41.6%, 68.2%, 0%, 39.6%)
CIE-LABlab(31.12, 41.63, -50.71)
CIE-LCHlch(31.12, 65.61, 309.38°)
OKLaboklab(42.44% 0.0732 -0.1448)
OKLCHoklch(42.44% 0.162 296.8)
XYZxyz(11.1460, 6.7032, 31.2722)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A319A #719A31
analogous
#313C9A #5A319A #8F319A
triadic
#5A319A #9A5A31 #319A5A
tetradic
#5A319A #9A313C #719A31 #319A8F
square
#5A319A #9A313C #719A31 #319A8F
split-complementary
#5A319A #9A8F31 #3C9A31
monochromatic
#24133D #3F226C #5A319A #7645C4 #9873D2

Accessibility & contrast

On white

8.97
#5A319A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5A319A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A319A
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A319A#FFFFFF#000000##FFFFFF
##5A319A1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9D
Deuteranopia (green-blind)
#004898
Tritanopia (blue-blind)
#4A4A61
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a319a;
/* rgb */ color: rgb(90, 49, 154);
/* oklch */ color: oklch(42.4% 0.162 296.8);
Tailwind
colors: {
  custom: {
    50: '#8e6cb9',
    500: '#5a319a',
    950: '#000000',
  },
}
SCSS
$custom: #5a319a;
$custom-light: #8e6cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a319a",
  "rgb": {
    "r": 90,
    "g": 49,
    "b": 154
  },
  "hsl": {
    "h": 263.429,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42442,
    "c": 0.16219,
    "h": 296.8
  },
  "luminance": 0.06703
}

Semantic roles & 50–950 ramp

primary
#5A319A
secondary
#9CBA6C
accent
#DB4DA4
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5A319A

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

Preview Lab → · Contrast checker → · Palette generator →

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