#8A1F4D#8A1F4D

#8A1F4D is a dark, vivid pink. Relative luminance 0.069; OKLCH L 43.0% C 0.146 H 359.6°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#8A1F4D
RGBrgb(138, 31, 77)
HSLhsl(334, 63%, 33%)
HSVhsv(334, 78%, 54%)
CMYKcmyk(0%, 77.5%, 44.2%, 45.9%)
CIE-LABlab(31.63, 47.70, -0.62)
CIE-LCHlch(31.63, 47.71, 359.26°)
OKLaboklab(42.98% 0.1465 -0.0011)
OKLCHoklch(42.98% 0.146 359.6)
XYZxyz(12.3117, 6.9207, 7.7072)
Luminance0.0692 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F4D #1F8A5C
analogous
#8A1F82 #8A1F4D #8A271F
triadic
#8A1F4D #4D8A1F #1F4D8A
tetradic
#8A1F4D #828A1F #1F8A5C #271F8A
square
#8A1F4D #828A1F #1F8A5C #271F8A
split-complementary
#8A1F4D #1F8A27 #1F828A
monochromatic
#260915 #581431 #8A1F4D #BC2A69 #D74C88

Accessibility & contrast

On white

8.81
#8A1F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1F4D
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F4D#FFFFFF#000000##FFFFFF
##8A1F4D1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#373D4E
Deuteranopia (green-blind)
#54524B
Tritanopia (blue-blind)
#960C33
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #8a1f4d;
/* rgb */ color: rgb(138, 31, 77);
/* oklch */ color: oklch(43.0% 0.146 359.6);
Tailwind
colors: {
  custom: {
    50: '#b1667e',
    500: '#8a1f4d',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f4d;
$custom-light: #b1667e;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f4d",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 77
  },
  "hsl": {
    "h": 334.206,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.42978,
    "c": 0.14649,
    "h": 359.6
  },
  "luminance": 0.06919
}

Semantic roles & 50–950 ramp

primary
#8A1F4D
secondary
#4BBA8A
accent
#E69F41
background
#FBF6F7
surface
#F6EBEE
border
#D0C6C9
text
#11060A
muted
#807A7C

Preview Lab

Preview with #8A1F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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