#8A1B42#8A1B42

#8A1B42 is a dark, vivid pink. Relative luminance 0.066; OKLCH L 42.3% C 0.147 H 5.6°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#8A1B42
RGBrgb(138, 27, 66)
HSLhsl(339, 67%, 32%)
HSVhsv(339, 80%, 54%)
CMYKcmyk(0%, 80.4%, 52.2%, 45.9%)
CIE-LABlab(30.84, 47.96, 5.50)
CIE-LCHlch(30.84, 48.27, 6.55°)
OKLaboklab(42.29% 0.1466 0.0144)
OKLCHoklch(42.29% 0.147 5.6)
XYZxyz(11.8576, 6.5822, 5.7993)
Luminance0.0658 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1B42 #1B8A63
analogous
#8A1B7A #8A1B42 #8A2C1B
triadic
#8A1B42 #428A1B #1B428A
tetradic
#8A1B42 #7A8A1B #1B8A63 #2C1B8A
square
#8A1B42 #7A8A1B #1B8A63 #2C1B8A
split-complementary
#8A1B42 #1B8A2C #1B7A8A
monochromatic
#240711 #57112A #8A1B42 #BD255A #DB4579

Accessibility & contrast

On white

9.07
#8A1B42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#8A1B42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1B42
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1B42#FFFFFF#000000##FFFFFF
##8A1B421.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#383B43
Deuteranopia (green-blind)
#55503F
Tritanopia (blue-blind)
#97002C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #8a1b42;
/* rgb */ color: rgb(138, 27, 66);
/* oklch */ color: oklch(42.3% 0.147 5.6);
Tailwind
colors: {
  custom: {
    50: '#b26476',
    500: '#8a1b42',
    950: '#000000',
  },
}
SCSS
$custom: #8a1b42;
$custom-light: #b26476;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1b42",
  "rgb": {
    "r": 138,
    "g": 27,
    "b": 66
  },
  "hsl": {
    "h": 338.919,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.42289,
    "c": 0.1473,
    "h": 5.6
  },
  "luminance": 0.0658
}

Semantic roles & 50–950 ramp

primary
#8A1B42
secondary
#45BC92
accent
#EAAE3E
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#120608
muted
#817A7B

Preview Lab

Preview with #8A1B42

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

Preview Lab → · Contrast checker → · Palette generator →

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