#5A16A1#5A16A1

#5A16A1 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 40.2% C 0.198 H 298.5°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#5A16A1
RGBrgb(90, 22, 161)
HSLhsl(269, 76%, 36%)
HSVhsv(269, 86%, 63%)
CMYKcmyk(44.1%, 86.3%, 0%, 36.9%)
CIE-LABlab(27.63, 55.12, -60.68)
CIE-LCHlch(27.63, 81.98, 312.25°)
OKLaboklab(40.18% 0.0943 -0.1738)
OKLCHoklch(40.18% 0.198 298.5)
XYZxyz(10.9347, 5.3205, 34.1622)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A16A1 #5DA116
analogous
#1617A1 #5A16A1 #9F16A1
triadic
#5A16A1 #A15A16 #16A15A
tetradic
#5A16A1 #A11617 #5DA116 #16A19F
square
#5A16A1 #A11617 #5DA116 #16A19F
split-complementary
#5A16A1 #A19F16 #17A116
monochromatic
#1E0735 #3C0F6B #5A16A1 #781DD7 #974BE6

Accessibility & contrast

On white

10.17
#5A16A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5A16A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A16A1
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A16A1#FFFFFF#000000##FFFFFF
##5A16A11.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A5
Deuteranopia (green-blind)
#00409F
Tritanopia (blue-blind)
#48405F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5a16a1;
/* rgb */ color: rgb(90, 22, 161);
/* oklch */ color: oklch(40.2% 0.198 298.5);
Tailwind
colors: {
  custom: {
    50: '#915fbe',
    500: '#5a16a1',
    950: '#000000',
  },
}
SCSS
$custom: #5a16a1;
$custom-light: #915fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5a16a1",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 161
  },
  "hsl": {
    "h": 269.353,
    "s": 75.956,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40176,
    "c": 0.19777,
    "h": 298.5
  },
  "luminance": 0.05321
}

Semantic roles & 50–950 ramp

primary
#5A16A1
secondary
#8BC84B
accent
#F33596
background
#F9F5FB
surface
#F2EAF7
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5A16A1

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

Preview Lab → · Contrast checker → · Palette generator →

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