#5A174B#5A174B

#5A174B is a dark, moderate pink. Relative luminance 0.033; OKLCH L 33.6% C 0.116 H 338.2°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#5A174B
RGBrgb(90, 23, 75)
HSLhsl(313, 59%, 22%)
HSVhsv(313, 74%, 35%)
CMYKcmyk(0%, 74.4%, 16.7%, 64.7%)
CIE-LABlab(21.19, 36.47, -15.95)
CIE-LCHlch(21.19, 39.81, 336.38°)
OKLaboklab(33.59% 0.1078 -0.0432)
OKLCHoklch(33.59% 0.116 338.2)
XYZxyz(5.7930, 3.2950, 6.9861)
Luminance0.0329 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A174B #175A26
analogous
#48175A #5A174B #5A172A
triadic
#5A174B #4B5A17 #174B5A
tetradic
#5A174B #5A4817 #175A26 #172A5A
square
#5A174B #5A4817 #175A26 #172A5A
split-complementary
#5A174B #2A5A17 #175A48
monochromatic
#180614 #290B22 #5A174B #8B2374 #BB309C

Accessibility & contrast

On white

12.66
#5A174B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#5A174B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A174B
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A174B#FFFFFF#000000##FFFFFF
##5A174B1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2C4C
Deuteranopia (green-blind)
#2F3749
Tritanopia (blue-blind)
#5F1A2E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a174b;
/* rgb */ color: rgb(90, 23, 75);
/* oklch */ color: oklch(33.6% 0.116 338.2);
Tailwind
colors: {
  custom: {
    50: '#8b5b7d',
    500: '#5a174b',
    950: '#000000',
  },
}
SCSS
$custom: #5a174b;
$custom-light: #8b5b7d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a174b",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 75
  },
  "hsl": {
    "h": 313.433,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33589,
    "c": 0.11613,
    "h": 338.2
  },
  "luminance": 0.03294
}

Semantic roles & 50–950 ramp

primary
#5A174B
secondary
#3C914F
accent
#E26945
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5A174B

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

Preview Lab → · Contrast checker → · Palette generator →

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