#5A176B#5A176B

#5A176B is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.6% C 0.145 H 318.5°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#5A176B
RGBrgb(90, 23, 107)
HSLhsl(288, 65%, 25%)
HSVhsv(288, 79%, 42%)
CMYKcmyk(15.9%, 78.5%, 0%, 58%)
CIE-LABlab(23.16, 42.52, -34.07)
CIE-LCHlch(23.16, 54.49, 321.29°)
OKLaboklab(35.64% 0.1083 -0.0957)
OKLCHoklch(35.64% 0.145 318.5)
XYZxyz(7.1763, 3.8483, 14.2719)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A176B #286B17
analogous
#30176B #5A176B #6B1752
triadic
#5A176B #6B5A17 #176B5A
tetradic
#5A176B #6B3017 #286B17 #17526B
square
#5A176B #6B3017 #286B17 #17526B
split-complementary
#5A176B #526B17 #176B30
monochromatic
#150519 #300C39 #5A176B #84229D #AF2DD0

Accessibility & contrast

On white

11.87
#5A176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#5A176B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A176B
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A176B#FFFFFF#000000##FFFFFF
##5A176B1.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336D
Deuteranopia (green-blind)
#1C3969
Tritanopia (blue-blind)
#5A2840
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a176b;
/* rgb */ color: rgb(90, 23, 107);
/* oklch */ color: oklch(35.6% 0.145 318.5);
Tailwind
colors: {
  custom: {
    50: '#8c5c96',
    500: '#5a176b',
    950: '#000000',
  },
}
SCSS
$custom: #5a176b;
$custom-light: #8c5c96;
$custom-dark: #000000;
JSON
{
  "hex": "#5a176b",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 287.857,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.35644,
    "c": 0.14451,
    "h": 318.5
  },
  "luminance": 0.03848
}

Semantic roles & 50–950 ramp

primary
#5A176B
secondary
#51A13D
accent
#E84062
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A176B

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

Preview Lab → · Contrast checker → · Palette generator →

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