#5A173F#5A173F

#5A173F is a dark, moderate pink. Relative luminance 0.031; OKLCH L 33.0% C 0.108 H 347.9°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#5A173F
RGBrgb(90, 23, 63)
HSLhsl(324, 59%, 22%)
HSVhsv(324, 74%, 35%)
CMYKcmyk(0%, 74.4%, 30%, 64.7%)
CIE-LABlab(20.62, 34.62, -8.60)
CIE-LCHlch(20.62, 35.67, 346.06°)
OKLaboklab(32.99% 0.1052 -0.0226)
OKLCHoklch(32.99% 0.108 347.9)
XYZxyz(5.4203, 3.1459, 5.0234)
Luminance0.0314 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A173F #175A32
analogous
#54175A #5A173F #5A171E
triadic
#5A173F #3F5A17 #173F5A
tetradic
#5A173F #5A5417 #175A32 #171E5A
square
#5A173F #5A5417 #175A32 #171E5A
split-complementary
#5A173F #1E5A17 #175A54
monochromatic
#180611 #290B1D #5A173F #8B2361 #BB3083

Accessibility & contrast

On white

12.89
#5A173F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#5A173F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A173F
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A173F#FFFFFF#000000##FFFFFF
##5A173F1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202A40
Deuteranopia (green-blind)
#33363D
Tritanopia (blue-blind)
#611528
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a173f;
/* rgb */ color: rgb(90, 23, 63);
/* oklch */ color: oklch(33.0% 0.108 347.9);
Tailwind
colors: {
  custom: {
    50: '#8c5a74',
    500: '#5a173f',
    950: '#000000',
  },
}
SCSS
$custom: #5a173f;
$custom-light: #8c5a74;
$custom-dark: #000000;
JSON
{
  "hex": "#5a173f",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 63
  },
  "hsl": {
    "h": 324.179,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.32988,
    "c": 0.10756,
    "h": 347.9
  },
  "luminance": 0.03145
}

Semantic roles & 50–950 ramp

primary
#5A173F
secondary
#3C915E
accent
#E28545
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0408
muted
#7D797B

Preview Lab

Preview with #5A173F

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

Preview Lab → · Contrast checker → · Palette generator →

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