#8A1F4A#8A1F4A

#8A1F4A is a dark, vivid pink. Relative luminance 0.069; OKLCH L 42.9% C 0.145 H 1.4°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#8A1F4A
RGBrgb(138, 31, 74)
HSLhsl(336, 63%, 33%)
HSVhsv(336, 78%, 54%)
CMYKcmyk(0%, 77.5%, 46.4%, 45.9%)
CIE-LABlab(31.53, 47.40, 1.21)
CIE-LCHlch(31.53, 47.42, 1.47°)
OKLaboklab(42.88% 0.1454 0.0037)
OKLCHoklch(42.88% 0.145 1.4)
XYZxyz(12.2082, 6.8793, 7.1622)
Luminance0.0688 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F4A #1F8A5F
analogous
#8A1F7F #8A1F4A #8A291F
triadic
#8A1F4A #4A8A1F #1F4A8A
tetradic
#8A1F4A #7F8A1F #1F8A5F #291F8A
square
#8A1F4A #7F8A1F #1F8A5F #291F8A
split-complementary
#8A1F4A #1F8A29 #1F7F8A
monochromatic
#260914 #58142F #8A1F4A #BC2A65 #D74C84

Accessibility & contrast

On white

8.84
#8A1F4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#8A1F4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F4A
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F4A#FFFFFF#000000##FFFFFF
##8A1F4A1.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#383D4B
Deuteranopia (green-blind)
#545248
Tritanopia (blue-blind)
#960A32
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #8a1f4a;
/* rgb */ color: rgb(138, 31, 74);
/* oklch */ color: oklch(42.9% 0.145 1.4);
Tailwind
colors: {
  custom: {
    50: '#b1657c',
    500: '#8a1f4a',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f4a;
$custom-light: #b1657c;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f4a",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 74
  },
  "hsl": {
    "h": 335.888,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.42877,
    "c": 0.14548,
    "h": 1.4
  },
  "luminance": 0.06878
}

Semantic roles & 50–950 ramp

primary
#8A1F4A
secondary
#4BBA8D
accent
#E6A441
background
#FBF6F7
surface
#F6EBEE
border
#D0C6C9
text
#120609
muted
#817A7B

Preview Lab

Preview with #8A1F4A

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

Preview Lab → · Contrast checker → · Palette generator →

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