#8A1D42#8A1D42

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

Color values

HEX#8A1D42
RGBrgb(138, 29, 66)
HSLhsl(340, 65%, 33%)
HSVhsv(340, 79%, 54%)
CMYKcmyk(0%, 79%, 52.2%, 45.9%)
CIE-LABlab(31.06, 47.32, 5.82)
CIE-LCHlch(31.06, 47.68, 7.01°)
OKLaboklab(42.45% 0.1446 0.0152)
OKLCHoklch(42.45% 0.145 6)
XYZxyz(11.9050, 6.6770, 5.8151)
Luminance0.0668 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1D42 #1D8A65
analogous
#8A1D78 #8A1D42 #8A2F1D
triadic
#8A1D42 #428A1D #1D428A
tetradic
#8A1D42 #788A1D #1D8A65 #2F1D8A
square
#8A1D42 #788A1D #1D8A65 #2F1D8A
split-complementary
#8A1D42 #1D8A2F #1D788A
monochromatic
#250812 #57122A #8A1D42 #BD285A #D9497A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A1D42#FFFFFF#000000##FFFFFF
##8A1D421.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)
#393B43
Deuteranopia (green-blind)
#55513F
Tritanopia (blue-blind)
#97002D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #8a1d42;
/* rgb */ color: rgb(138, 29, 66);
/* oklch */ color: oklch(42.5% 0.145 6.0);
Tailwind
colors: {
  custom: {
    50: '#b26476',
    500: '#8a1d42',
    950: '#000000',
  },
}
SCSS
$custom: #8a1d42;
$custom-light: #b26476;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1d42",
  "rgb": {
    "r": 138,
    "g": 29,
    "b": 66
  },
  "hsl": {
    "h": 339.633,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.42454,
    "c": 0.14535,
    "h": 6
  },
  "luminance": 0.06675
}

Semantic roles & 50–950 ramp

primary
#8A1D42
secondary
#48BB94
accent
#E8AF40
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#120608
muted
#817A7B

Preview Lab

Preview with #8A1D42

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

Preview Lab → · Contrast checker → · Palette generator →

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