#8A1242#8A1242

#8A1242 is a dark, vivid pink. Relative luminance 0.062; OKLCH L 41.7% C 0.155 H 4.2°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#8A1242
RGBrgb(138, 18, 66)
HSLhsl(336, 77%, 31%)
HSVhsv(336, 87%, 54%)
CMYKcmyk(0%, 87%, 52.2%, 45.9%)
CIE-LABlab(29.99, 50.37, 4.29)
CIE-LCHlch(29.99, 50.56, 4.87°)
OKLaboklab(41.67% 0.1544 0.0114)
OKLCHoklch(41.67% 0.155 4.2)
XYZxyz(11.6820, 6.2309, 5.7408)
Luminance0.0623 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1242 #128A5A
analogous
#8A127E #8A1242 #8A1E12
triadic
#8A1242 #428A12 #12428A
tetradic
#8A1242 #7E8A12 #128A5A #1E128A
square
#8A1242 #7E8A12 #128A5A #1E128A
split-complementary
#8A1242 #128A1E #127E8A
monochromatic
#1E040E #540B28 #8A1242 #C0195C #E43279

Accessibility & contrast

On white

9.35
#8A1242 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#8A1242 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1242
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1242#FFFFFF#000000##FFFFFF
##8A12421.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#343843
Deuteranopia (green-blind)
#534F3F
Tritanopia (blue-blind)
#970029
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #8a1242;
/* rgb */ color: rgb(138, 18, 66);
/* oklch */ color: oklch(41.7% 0.155 4.2);
Tailwind
colors: {
  custom: {
    50: '#b26176',
    500: '#8a1242',
    950: '#000000',
  },
}
SCSS
$custom: #8a1242;
$custom-light: #b26176;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1242",
  "rgb": {
    "r": 138,
    "g": 18,
    "b": 66
  },
  "hsl": {
    "h": 336,
    "s": 76.923,
    "l": 30.588
  },
  "oklch": {
    "l": 0.41666,
    "c": 0.15483,
    "h": 4.2
  },
  "luminance": 0.06229
}

Semantic roles & 50–950 ramp

primary
#8A1242
secondary
#39BF89
accent
#F3A734
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#120608
muted
#817A7B

Preview Lab

Preview with #8A1242

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

Preview Lab → · Contrast checker → · Palette generator →

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