#5A116A#5A116A

#5A116A is a dark, vivid purple. Relative luminance 0.036; OKLCH L 35.1% C 0.150 H 319.4°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#5A116A
RGBrgb(90, 17, 106)
HSLhsl(289, 72%, 24%)
HSVhsv(289, 84%, 42%)
CMYKcmyk(15.1%, 84%, 0%, 58.4%)
CIE-LABlab(22.36, 44.43, -34.72)
CIE-LCHlch(22.36, 56.39, 322.00°)
OKLaboklab(35.05% 0.1139 -0.0976)
OKLCHoklch(35.05% 0.15 319.4)
XYZxyz(7.0181, 3.6155, 13.9611)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A116A #216A11
analogous
#2D116A #5A116A #6A114E
triadic
#5A116A #6A5A11 #116A5A
tetradic
#5A116A #6A2D11 #216A11 #114E6A
square
#5A116A #6A2D11 #216A11 #114E6A
split-complementary
#5A116A #4E6A11 #116A2D
monochromatic
#16041A #2D0935 #5A116A #87199F #B422D3

Accessibility & contrast

On white

12.19
#5A116A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5A116A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A116A
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A116A#FFFFFF#000000##FFFFFF
##5A116A1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316C
Deuteranopia (green-blind)
#193868
Tritanopia (blue-blind)
#5A253E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a116a;
/* rgb */ color: rgb(90, 17, 106);
/* oklch */ color: oklch(35.1% 0.150 319.4);
Tailwind
colors: {
  custom: {
    50: '#8c5a95',
    500: '#5a116a',
    950: '#000000',
  },
}
SCSS
$custom: #5a116a;
$custom-light: #8c5a95;
$custom-dark: #000000;
JSON
{
  "hex": "#5a116a",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 106
  },
  "hsl": {
    "h": 289.213,
    "s": 72.358,
    "l": 24.118
  },
  "oklch": {
    "l": 0.35051,
    "c": 0.15,
    "h": 319.4
  },
  "luminance": 0.03615
}

Semantic roles & 50–950 ramp

primary
#5A116A
secondary
#49A235
accent
#EF395A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A116A

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

Preview Lab → · Contrast checker → · Palette generator →

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