#8A1F5E#8A1F5E

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

Color values

HEX#8A1F5E
RGBrgb(138, 31, 94)
HSLhsl(325, 63%, 33%)
HSVhsv(325, 78%, 54%)
CMYKcmyk(0%, 77.5%, 31.9%, 45.9%)
CIE-LABlab(32.24, 49.62, -10.79)
CIE-LCHlch(32.24, 50.78, 347.73°)
OKLaboklab(43.63% 0.1516 -0.0282)
OKLCHoklch(43.63% 0.154 349.5)
XYZxyz(12.9923, 7.1929, 11.2917)
Luminance0.0719 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F5E #1F8A4B
analogous
#801F8A #8A1F5E #8A1F28
triadic
#8A1F5E #5E8A1F #1F5E8A
tetradic
#8A1F5E #8A801F #1F8A4B #1F288A
square
#8A1F5E #8A801F #1F8A4B #1F288A
split-complementary
#8A1F5E #288A1F #1F8A80
monochromatic
#26091A #58143C #8A1F5E #BC2A80 #D74C9E

Accessibility & contrast

On white

8.61
#8A1F5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1F5E
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F5E#FFFFFF#000000##FFFFFF
##8A1F5E1.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314060
Deuteranopia (green-blind)
#50535C
Tritanopia (blue-blind)
#94183C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #8a1f5e;
/* rgb */ color: rgb(138, 31, 94);
/* oklch */ color: oklch(43.6% 0.154 349.5);
Tailwind
colors: {
  custom: {
    50: '#b0668b',
    500: '#8a1f5e',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f5e;
$custom-light: #b0668b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f5e",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 94
  },
  "hsl": {
    "h": 324.673,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.4363,
    "c": 0.15424,
    "h": 349.5
  },
  "luminance": 0.07191
}

Semantic roles & 50–950 ramp

primary
#8A1F5E
secondary
#4BBA79
accent
#E68541
background
#FBF6F8
surface
#F6EBF0
border
#D0C6CB
text
#11060C
muted
#807A7D

Preview Lab

Preview with #8A1F5E

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

Preview Lab → · Contrast checker → · Palette generator →

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