#8A1F4E#8A1F4E

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

Color values

HEX#8A1F4E
RGBrgb(138, 31, 78)
HSLhsl(334, 63%, 33%)
HSVhsv(334, 78%, 54%)
CMYKcmyk(0%, 77.5%, 43.5%, 45.9%)
CIE-LABlab(31.66, 47.81, -1.23)
CIE-LCHlch(31.66, 47.82, 358.53°)
OKLaboklab(43.01% 0.1468 -0.0026)
OKLCHoklch(43.01% 0.147 359)
XYZxyz(12.3473, 6.9349, 7.8946)
Luminance0.0693 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F4E #1F8A5B
analogous
#8A1F83 #8A1F4E #8A251F
triadic
#8A1F4E #4E8A1F #1F4E8A
tetradic
#8A1F4E #838A1F #1F8A5B #251F8A
square
#8A1F4E #838A1F #1F8A5B #251F8A
split-complementary
#8A1F4E #1F8A25 #1F838A
monochromatic
#260916 #581432 #8A1F4E #BC2A6A #D74C89

Accessibility & contrast

On white

8.80
#8A1F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#8A1F4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F4E
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F4E#FFFFFF#000000##FFFFFF
##8A1F4E1.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#363E4F
Deuteranopia (green-blind)
#54524C
Tritanopia (blue-blind)
#960D34
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #8a1f4e;
/* rgb */ color: rgb(138, 31, 78);
/* oklch */ color: oklch(43.0% 0.147 359.0);
Tailwind
colors: {
  custom: {
    50: '#b1667f',
    500: '#8a1f4e',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f4e;
$custom-light: #b1667f;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f4e",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 78
  },
  "hsl": {
    "h": 333.645,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43012,
    "c": 0.14686,
    "h": 359
  },
  "luminance": 0.06933
}

Semantic roles & 50–950 ramp

primary
#8A1F4E
secondary
#4BBA89
accent
#E69E41
background
#FBF6F7
surface
#F6EBEE
border
#D0C6C9
text
#11060A
muted
#807A7C

Preview Lab

Preview with #8A1F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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