#8A1B4D#8A1B4D

#8A1B4D is a dark, vivid pink. Relative luminance 0.067; OKLCH L 42.6% C 0.151 H 358.9°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#8A1B4D
RGBrgb(138, 27, 77)
HSLhsl(333, 67%, 32%)
HSVhsv(333, 80%, 54%)
CMYKcmyk(0%, 80.4%, 44.2%, 45.9%)
CIE-LABlab(31.17, 48.99, -1.29)
CIE-LCHlch(31.17, 49.00, 358.50°)
OKLaboklab(42.64% 0.1506 -0.0028)
OKLCHoklch(42.64% 0.151 358.9)
XYZxyz(12.2137, 6.7246, 7.6746)
Luminance0.0672 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1B4D #1B8A58
analogous
#8A1B85 #8A1B4D #8A201B
triadic
#8A1B4D #4D8A1B #1B4D8A
tetradic
#8A1B4D #858A1B #1B8A58 #201B8A
square
#8A1B4D #858A1B #1B8A58 #201B8A
split-complementary
#8A1B4D #1B8A20 #1B858A
monochromatic
#240714 #571130 #8A1B4D #BD256A #DB4588

Accessibility & contrast

On white

8.96
#8A1B4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#8A1B4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1B4D
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1B4D#FFFFFF#000000##FFFFFF
##8A1B4D1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#353C4E
Deuteranopia (green-blind)
#53514A
Tritanopia (blue-blind)
#960432
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #8a1b4d;
/* rgb */ color: rgb(138, 27, 77);
/* oklch */ color: oklch(42.6% 0.151 358.9);
Tailwind
colors: {
  custom: {
    50: '#b1647e',
    500: '#8a1b4d',
    950: '#000000',
  },
}
SCSS
$custom: #8a1b4d;
$custom-light: #b1647e;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1b4d",
  "rgb": {
    "r": 138,
    "g": 27,
    "b": 77
  },
  "hsl": {
    "h": 332.973,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.42644,
    "c": 0.15064,
    "h": 358.9
  },
  "luminance": 0.06723
}

Semantic roles & 50–950 ramp

primary
#8A1B4D
secondary
#45BC86
accent
#EA9C3E
background
#FBF6F7
surface
#F6EBEE
border
#D0C6C9
text
#12060A
muted
#817A7C

Preview Lab

Preview with #8A1B4D

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

Preview Lab → · Contrast checker → · Palette generator →

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