#5A116F#5A116F

#5A116F is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.4% C 0.155 H 317.0°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#5A116F
RGBrgb(90, 17, 111)
HSLhsl(287, 73%, 25%)
HSVhsv(287, 85%, 44%)
CMYKcmyk(18.9%, 84.7%, 0%, 56.5%)
CIE-LABlab(22.73, 45.45, -37.36)
CIE-LCHlch(22.73, 58.83, 320.58°)
OKLaboklab(35.43% 0.1131 -0.1053)
OKLCHoklch(35.43% 0.155 317)
XYZxyz(7.2857, 3.7226, 15.3706)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A116F #266F11
analogous
#2B116F #5A116F #6F1155
triadic
#5A116F #6F5A11 #116F5A
tetradic
#5A116F #6F2B11 #266F11 #11556F
square
#5A116F #6F2B11 #266F11 #11556F
split-complementary
#5A116F #556F11 #116F2B
monochromatic
#16041B #2F093A #5A116F #8519A4 #B021D9

Accessibility & contrast

On white

12.04
#5A116F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#5A116F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A116F
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A116F#FFFFFF#000000##FFFFFF
##5A116F1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#12386D
Tritanopia (blue-blind)
#592741
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5a116f;
/* rgb */ color: rgb(90, 17, 111);
/* oklch */ color: oklch(35.4% 0.155 317.0);
Tailwind
colors: {
  custom: {
    50: '#8c5a99',
    500: '#5a116f',
    950: '#000000',
  },
}
SCSS
$custom: #5a116f;
$custom-light: #8c5a99;
$custom-dark: #000000;
JSON
{
  "hex": "#5a116f",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 111
  },
  "hsl": {
    "h": 286.596,
    "s": 73.438,
    "l": 25.098
  },
  "oklch": {
    "l": 0.35433,
    "c": 0.15451,
    "h": 317
  },
  "luminance": 0.03722
}

Semantic roles & 50–950 ramp

primary
#5A116F
secondary
#4FA635
accent
#F03861
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #5A116F

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

Preview Lab → · Contrast checker → · Palette generator →

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