#8A1F5C#8A1F5C

#8A1F5C is a dark, vivid pink. Relative luminance 0.072; OKLCH L 43.5% C 0.153 H 350.6°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#8A1F5C
RGBrgb(138, 31, 92)
HSLhsl(326, 63%, 33%)
HSVhsv(326, 78%, 54%)
CMYKcmyk(0%, 77.5%, 33.3%, 45.9%)
CIE-LABlab(32.16, 49.38, -9.61)
CIE-LCHlch(32.16, 50.31, 348.98°)
OKLaboklab(43.55% 0.1511 -0.025)
OKLCHoklch(43.55% 0.153 350.6)
XYZxyz(12.9037, 7.1575, 10.8251)
Luminance0.0716 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F5C #1F8A4D
analogous
#821F8A #8A1F5C #8A1F27
triadic
#8A1F5C #5C8A1F #1F5C8A
tetradic
#8A1F5C #8A821F #1F8A4D #1F278A
square
#8A1F5C #8A821F #1F8A4D #1F278A
split-complementary
#8A1F5C #278A1F #1F8A82
monochromatic
#260919 #58143B #8A1F5C #BC2A7D #D74C9B

Accessibility & contrast

On white

8.64
#8A1F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1F5C
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F5C#FFFFFF#000000##FFFFFF
##8A1F5C1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#31405E
Deuteranopia (green-blind)
#50535A
Tritanopia (blue-blind)
#95173B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #8a1f5c;
/* rgb */ color: rgb(138, 31, 92);
/* oklch */ color: oklch(43.5% 0.153 350.6);
Tailwind
colors: {
  custom: {
    50: '#b0668a',
    500: '#8a1f5c',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f5c;
$custom-light: #b0668a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f5c",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 92
  },
  "hsl": {
    "h": 325.794,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43546,
    "c": 0.15318,
    "h": 350.6
  },
  "luminance": 0.07156
}

Semantic roles & 50–950 ramp

primary
#8A1F5C
secondary
#4BBA7B
accent
#E68841
background
#FBF6F8
surface
#F6EBF0
border
#D0C6CB
text
#11060B
muted
#807A7C

Preview Lab

Preview with #8A1F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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