#8A1F5D#8A1F5D

#8A1F5D is a dark, vivid pink. Relative luminance 0.072; OKLCH L 43.6% C 0.154 H 350.0°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#8A1F5D
RGBrgb(138, 31, 93)
HSLhsl(325, 63%, 33%)
HSVhsv(325, 78%, 54%)
CMYKcmyk(0%, 77.5%, 32.6%, 45.9%)
CIE-LABlab(32.20, 49.50, -10.20)
CIE-LCHlch(32.20, 50.54, 348.36°)
OKLaboklab(43.59% 0.1514 -0.0266)
OKLCHoklch(43.59% 0.154 350)
XYZxyz(12.9477, 7.1751, 11.0569)
Luminance0.0717 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F5D #1F8A4C
analogous
#811F8A #8A1F5D #8A1F27
triadic
#8A1F5D #5D8A1F #1F5D8A
tetradic
#8A1F5D #8A811F #1F8A4C #1F278A
square
#8A1F5D #8A811F #1F8A4C #1F278A
split-complementary
#8A1F5D #278A1F #1F8A81
monochromatic
#26091A #58143B #8A1F5D #BC2A7F #D74C9D

Accessibility & contrast

On white

8.62
#8A1F5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#8A1F5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F5D
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F5D#FFFFFF#000000##FFFFFF
##8A1F5D1.008.622.438.62
#FFFFFF8.621.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#31405F
Deuteranopia (green-blind)
#50535B
Tritanopia (blue-blind)
#95183B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #8a1f5d;
/* rgb */ color: rgb(138, 31, 93);
/* oklch */ color: oklch(43.6% 0.154 350.0);
Tailwind
colors: {
  custom: {
    50: '#b0668b',
    500: '#8a1f5d',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f5d;
$custom-light: #b0668b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f5d",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 93
  },
  "hsl": {
    "h": 325.234,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43588,
    "c": 0.1537,
    "h": 350
  },
  "luminance": 0.07174
}

Semantic roles & 50–950 ramp

primary
#8A1F5D
secondary
#4BBA7A
accent
#E68741
background
#FBF6F8
surface
#F6EBF0
border
#D0C6CB
text
#11060B
muted
#807A7C

Preview Lab

Preview with #8A1F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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