#8A1B4A#8A1B4A

#8A1B4A is a dark, vivid pink. Relative luminance 0.067; OKLCH L 42.5% C 0.150 H 0.8°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#8A1B4A
RGBrgb(138, 27, 74)
HSLhsl(335, 67%, 32%)
HSVhsv(335, 80%, 54%)
CMYKcmyk(0%, 80.4%, 46.4%, 45.9%)
CIE-LABlab(31.07, 48.69, 0.55)
CIE-LCHlch(31.07, 48.69, 0.65°)
OKLaboklab(42.54% 0.1496 0.002)
OKLCHoklch(42.54% 0.15 0.8)
XYZxyz(12.1102, 6.6832, 7.1295)
Luminance0.0668 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1B4A #1B8A5B
analogous
#8A1B81 #8A1B4A #8A241B
triadic
#8A1B4A #4A8A1B #1B4A8A
tetradic
#8A1B4A #818A1B #1B8A5B #241B8A
square
#8A1B4A #818A1B #1B8A5B #241B8A
split-complementary
#8A1B4A #1B8A24 #1B818A
monochromatic
#240713 #57112F #8A1B4A #BD2565 #DB4584

Accessibility & contrast

On white

8.99
#8A1B4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1B4A
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1B4A#FFFFFF#000000##FFFFFF
##8A1B4A1.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#353C4B
Deuteranopia (green-blind)
#535147
Tritanopia (blue-blind)
#960130
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #8a1b4a;
/* rgb */ color: rgb(138, 27, 74);
/* oklch */ color: oklch(42.5% 0.150 0.8);
Tailwind
colors: {
  custom: {
    50: '#b1647c',
    500: '#8a1b4a',
    950: '#000000',
  },
}
SCSS
$custom: #8a1b4a;
$custom-light: #b1647c;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1b4a",
  "rgb": {
    "r": 138,
    "g": 27,
    "b": 74
  },
  "hsl": {
    "h": 334.595,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.42542,
    "c": 0.14958,
    "h": 0.8
  },
  "luminance": 0.06682
}

Semantic roles & 50–950 ramp

primary
#8A1B4A
secondary
#45BC8A
accent
#EAA13E
background
#FBF6F7
surface
#F6EBEE
border
#D0C6C9
text
#120609
muted
#817A7B

Preview Lab

Preview with #8A1B4A

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

Preview Lab → · Contrast checker → · Palette generator →

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