#5A174E#5A174E

#5A174E is a dark, moderate pink. Relative luminance 0.033; OKLCH L 33.8% C 0.119 H 335.9°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#5A174E
RGBrgb(90, 23, 78)
HSLhsl(311, 59%, 22%)
HSVhsv(311, 74%, 35%)
CMYKcmyk(0%, 74.4%, 13.3%, 64.7%)
CIE-LABlab(21.35, 36.98, -17.74)
CIE-LCHlch(21.35, 41.01, 334.37°)
OKLaboklab(33.76% 0.1082 -0.0483)
OKLCHoklch(33.76% 0.119 335.9)
XYZxyz(5.8981, 3.3370, 7.5397)
Luminance0.0334 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A174E #175A23
analogous
#45175A #5A174E #5A172D
triadic
#5A174E #4E5A17 #174E5A
tetradic
#5A174E #5A4517 #175A23 #172D5A
square
#5A174E #5A4517 #175A23 #172D5A
split-complementary
#5A174E #2D5A17 #175A45
monochromatic
#180615 #290B24 #5A174E #8B2378 #BB30A2

Accessibility & contrast

On white

12.59
#5A174E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#5A174E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A174E
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A174E#FFFFFF#000000##FFFFFF
##5A174E1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182D50
Deuteranopia (green-blind)
#2E374C
Tritanopia (blue-blind)
#5F1B30
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a174e;
/* rgb */ color: rgb(90, 23, 78);
/* oklch */ color: oklch(33.8% 0.119 335.9);
Tailwind
colors: {
  custom: {
    50: '#8b5b7f',
    500: '#5a174e',
    950: '#000000',
  },
}
SCSS
$custom: #5a174e;
$custom-light: #8b5b7f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a174e",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 78
  },
  "hsl": {
    "h": 310.746,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33755,
    "c": 0.11852,
    "h": 335.9
  },
  "luminance": 0.03337
}

Semantic roles & 50–950 ramp

primary
#5A174E
secondary
#3C914B
accent
#E26145
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A174E

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

Preview Lab → · Contrast checker → · Palette generator →

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