#5A172D#5A172D

#5A172D is a dark, moderate pink. Relative luminance 0.030; OKLCH L 32.3% C 0.099 H 4.6°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#5A172D
RGBrgb(90, 23, 45)
HSLhsl(340, 59%, 22%)
HSVhsv(340, 74%, 35%)
CMYKcmyk(0%, 74.4%, 50%, 64.7%)
CIE-LABlab(19.95, 32.35, 3.00)
CIE-LCHlch(19.95, 32.49, 5.29°)
OKLaboklab(32.28% 0.0988 0.008)
OKLCHoklch(32.28% 0.099 4.6)
XYZxyz(4.9969, 2.9766, 2.7935)
Luminance0.0298 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A172D #175A44
analogous
#5A174E #5A172D #5A2317
triadic
#5A172D #2D5A17 #172D5A
tetradic
#5A172D #4E5A17 #175A44 #23175A
square
#5A172D #4E5A17 #175A44 #23175A
split-complementary
#5A172D #175A23 #174E5A
monochromatic
#18060C #290B15 #5A172D #8B2345 #BB305E

Accessibility & contrast

On white

13.16
#5A172D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#5A172D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A172D
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A172D#FFFFFF#000000##FFFFFF
##5A172D1.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26282E
Deuteranopia (green-blind)
#38352B
Tritanopia (blue-blind)
#620C20
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a172d;
/* rgb */ color: rgb(90, 23, 45);
/* oklch */ color: oklch(32.3% 0.099 4.6);
Tailwind
colors: {
  custom: {
    50: '#8d5a65',
    500: '#5a172d',
    950: '#000000',
  },
}
SCSS
$custom: #5a172d;
$custom-light: #8d5a65;
$custom-dark: #000000;
JSON
{
  "hex": "#5a172d",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 45
  },
  "hsl": {
    "h": 340.299,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.32275,
    "c": 0.09915,
    "h": 4.6
  },
  "luminance": 0.02976
}

Semantic roles & 50–950 ramp

primary
#5A172D
secondary
#3C9175
accent
#E2AF45
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0405
muted
#7E797A

Preview Lab

Preview with #5A172D

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

Preview Lab → · Contrast checker → · Palette generator →

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