#8A1A42#8A1A42

#8A1A42 is a dark, vivid pink. Relative luminance 0.065; OKLCH L 42.2% C 0.148 H 5.4°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#8A1A42
RGBrgb(138, 26, 66)
HSLhsl(339, 68%, 32%)
HSVhsv(339, 81%, 54%)
CMYKcmyk(0%, 81.2%, 52.2%, 45.9%)
CIE-LABlab(30.73, 48.26, 5.35)
CIE-LCHlch(30.73, 48.56, 6.33°)
OKLaboklab(42.21% 0.1476 0.014)
OKLCHoklch(42.21% 0.148 5.4)
XYZxyz(11.8351, 6.5371, 5.7918)
Luminance0.0654 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1A42 #1A8A62
analogous
#8A1A7A #8A1A42 #8A2A1A
triadic
#8A1A42 #428A1A #1A428A
tetradic
#8A1A42 #7A8A1A #1A8A62 #2A1A8A
square
#8A1A42 #7A8A1A #1A8A62 #2A1A8A
split-complementary
#8A1A42 #1A8A2A #1A7A8A
monochromatic
#230711 #571029 #8A1A42 #BD245B #DC4379

Accessibility & contrast

On white

9.10
#8A1A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#8A1A42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1A42
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1A42#FFFFFF#000000##FFFFFF
##8A1A421.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#373A43
Deuteranopia (green-blind)
#55503F
Tritanopia (blue-blind)
#97002C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #8a1a42;
/* rgb */ color: rgb(138, 26, 66);
/* oklch */ color: oklch(42.2% 0.148 5.4);
Tailwind
colors: {
  custom: {
    50: '#b26376',
    500: '#8a1a42',
    950: '#000000',
  },
}
SCSS
$custom: #8a1a42;
$custom-light: #b26376;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1a42",
  "rgb": {
    "r": 138,
    "g": 26,
    "b": 66
  },
  "hsl": {
    "h": 338.571,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.4221,
    "c": 0.14824,
    "h": 5.4
  },
  "luminance": 0.06535
}

Semantic roles & 50–950 ramp

primary
#8A1A42
secondary
#43BD91
accent
#EBAD3D
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#120608
muted
#817A7B

Preview Lab

Preview with #8A1A42

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

Preview Lab → · Contrast checker → · Palette generator →

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