#8A1B4C#8A1B4C

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

Color values

HEX#8A1B4C
RGBrgb(138, 27, 76)
HSLhsl(334, 67%, 32%)
HSVhsv(334, 80%, 54%)
CMYKcmyk(0%, 80.4%, 44.9%, 45.9%)
CIE-LABlab(31.14, 48.89, -0.67)
CIE-LCHlch(31.14, 48.89, 359.21°)
OKLaboklab(42.61% 0.1503 -0.0012)
OKLCHoklch(42.61% 0.15 359.5)
XYZxyz(12.1786, 6.7106, 7.4900)
Luminance0.0671 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1B4C #1B8A59
analogous
#8A1B83 #8A1B4C #8A221B
triadic
#8A1B4C #4C8A1B #1B4C8A
tetradic
#8A1B4C #838A1B #1B8A59 #221B8A
square
#8A1B4C #838A1B #1B8A59 #221B8A
split-complementary
#8A1B4C #1B8A22 #1B838A
monochromatic
#240714 #571130 #8A1B4C #BD2568 #DB4587

Accessibility & contrast

On white

8.97
#8A1B4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1B4C
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1B4C#FFFFFF#000000##FFFFFF
##8A1B4C1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#353C4D
Deuteranopia (green-blind)
#535149
Tritanopia (blue-blind)
#960331
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #8a1b4c;
/* rgb */ color: rgb(138, 27, 76);
/* oklch */ color: oklch(42.6% 0.150 359.5);
Tailwind
colors: {
  custom: {
    50: '#b1647d',
    500: '#8a1b4c',
    950: '#000000',
  },
}
SCSS
$custom: #8a1b4c;
$custom-light: #b1647d;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1b4c",
  "rgb": {
    "r": 138,
    "g": 27,
    "b": 76
  },
  "hsl": {
    "h": 333.514,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.4261,
    "c": 0.15027,
    "h": 359.5
  },
  "luminance": 0.06709
}

Semantic roles & 50–950 ramp

primary
#8A1B4C
secondary
#45BC87
accent
#EA9E3E
background
#FBF6F7
surface
#F6EBEE
border
#D0C6C9
text
#120609
muted
#817A7B

Preview Lab

Preview with #8A1B4C

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

Preview Lab → · Contrast checker → · Palette generator →

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