#8A1F5F#8A1F5F

#8A1F5F is a dark, vivid pink. Relative luminance 0.072; OKLCH L 43.7% C 0.155 H 348.9°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#8A1F5F
RGBrgb(138, 31, 95)
HSLhsl(324, 63%, 33%)
HSVhsv(324, 78%, 54%)
CMYKcmyk(0%, 77.5%, 31.2%, 45.9%)
CIE-LABlab(32.28, 49.75, -11.37)
CIE-LCHlch(32.28, 51.03, 347.12°)
OKLaboklab(43.67% 0.1519 -0.0298)
OKLCHoklch(43.67% 0.155 348.9)
XYZxyz(13.0375, 7.2110, 11.5295)
Luminance0.0721 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F5F #1F8A4A
analogous
#7F1F8A #8A1F5F #8A1F29
triadic
#8A1F5F #5F8A1F #1F5F8A
tetradic
#8A1F5F #8A7F1F #1F8A4A #1F298A
square
#8A1F5F #8A7F1F #1F8A4A #1F298A
split-complementary
#8A1F5F #298A1F #1F8A7F
monochromatic
#26091A #58143D #8A1F5F #BC2A81 #D74C9F

Accessibility & contrast

On white

8.60
#8A1F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#8A1F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F5F
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F5F#FFFFFF#000000##FFFFFF
##8A1F5F1.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#304061
Deuteranopia (green-blind)
#4F535D
Tritanopia (blue-blind)
#94193C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #8a1f5f;
/* rgb */ color: rgb(138, 31, 95);
/* oklch */ color: oklch(43.7% 0.155 348.9);
Tailwind
colors: {
  custom: {
    50: '#b0668c',
    500: '#8a1f5f',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f5f;
$custom-light: #b0668c;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f5f",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 95
  },
  "hsl": {
    "h": 324.112,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43673,
    "c": 0.15479,
    "h": 348.9
  },
  "luminance": 0.07209
}

Semantic roles & 50–950 ramp

primary
#8A1F5F
secondary
#4BBA78
accent
#E68441
background
#FBF6F8
surface
#F6EBF0
border
#D0C6CB
text
#11060C
muted
#807A7D

Preview Lab

Preview with #8A1F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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