#8A173A#8A173A

#8A173A is a dark, vivid pink. Relative luminance 0.063; OKLCH L 41.8% C 0.149 H 9.7°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#8A173A
RGBrgb(138, 23, 58)
HSLhsl(342, 71%, 32%)
HSVhsv(342, 83%, 54%)
CMYKcmyk(0%, 83.3%, 58%, 45.9%)
CIE-LABlab(30.21, 48.48, 9.95)
CIE-LCHlch(30.21, 49.49, 11.60°)
OKLaboklab(41.76% 0.1472 0.0251)
OKLCHoklch(41.76% 0.149 9.7)
XYZxyz(11.5525, 6.3233, 4.6144)
Luminance0.0632 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A173A #178A67
analogous
#8A1774 #8A173A #8A2E17
triadic
#8A173A #3A8A17 #173A8A
tetradic
#8A173A #748A17 #178A67 #2E178A
square
#8A173A #748A17 #178A67 #2E178A
split-complementary
#8A173A #178A2E #17748A
monochromatic
#21060E #560E24 #8A173A #BE2050 #DF3D6E

Accessibility & contrast

On white

9.27
#8A173A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#8A173A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A173A
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A173A#FFFFFF#000000##FFFFFF
##8A173A1.009.272.269.27
#FFFFFF9.271.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38383B
Deuteranopia (green-blind)
#554F37
Tritanopia (blue-blind)
#970027
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #8a173a;
/* rgb */ color: rgb(138, 23, 58);
/* oklch */ color: oklch(41.8% 0.149 9.7);
Tailwind
colors: {
  custom: {
    50: '#b2626f',
    500: '#8a173a',
    950: '#000000',
  },
}
SCSS
$custom: #8a173a;
$custom-light: #b2626f;
$custom-dark: #000000;
JSON
{
  "hex": "#8a173a",
  "rgb": {
    "r": 138,
    "g": 23,
    "b": 58
  },
  "hsl": {
    "h": 341.739,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.41762,
    "c": 0.14931,
    "h": 9.7
  },
  "luminance": 0.06322
}

Semantic roles & 50–950 ramp

primary
#8A173A
secondary
#3FBE97
accent
#EEB73A
background
#FBF6F6
surface
#F6EBEC
border
#D0C6C7
text
#120607
muted
#817A7A

Preview Lab

Preview with #8A173A

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

Preview Lab → · Contrast checker → · Palette generator →

#8A173A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva