#8A1F4C#8A1F4C

#8A1F4C is a dark, vivid pink. Relative luminance 0.069; OKLCH L 42.9% C 0.146 H 0.2°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#8A1F4C
RGBrgb(138, 31, 76)
HSLhsl(335, 63%, 33%)
HSVhsv(335, 78%, 54%)
CMYKcmyk(0%, 77.5%, 44.9%, 45.9%)
CIE-LABlab(31.59, 47.60, -0.01)
CIE-LCHlch(31.59, 47.60, 359.99°)
OKLaboklab(42.94% 0.1461 0.0005)
OKLCHoklch(42.94% 0.146 0.2)
XYZxyz(12.2767, 6.9067, 7.5227)
Luminance0.0691 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F4C #1F8A5D
analogous
#8A1F81 #8A1F4C #8A271F
triadic
#8A1F4C #4C8A1F #1F4C8A
tetradic
#8A1F4C #818A1F #1F8A5D #271F8A
square
#8A1F4C #818A1F #1F8A5D #271F8A
split-complementary
#8A1F4C #1F8A27 #1F818A
monochromatic
#260915 #581430 #8A1F4C #BC2A68 #D74C87

Accessibility & contrast

On white

8.82
#8A1F4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#8A1F4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F4C
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F4C#FFFFFF#000000##FFFFFF
##8A1F4C1.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#373D4D
Deuteranopia (green-blind)
#54524A
Tritanopia (blue-blind)
#960B33
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #8a1f4c;
/* rgb */ color: rgb(138, 31, 76);
/* oklch */ color: oklch(42.9% 0.146 0.2);
Tailwind
colors: {
  custom: {
    50: '#b1657d',
    500: '#8a1f4c',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f4c;
$custom-light: #b1657d;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f4c",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 76
  },
  "hsl": {
    "h": 334.766,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.42943,
    "c": 0.14614,
    "h": 0.2
  },
  "luminance": 0.06905
}

Semantic roles & 50–950 ramp

primary
#8A1F4C
secondary
#4BBA8B
accent
#E6A141
background
#FBF6F7
surface
#F6EBEE
border
#D0C6C9
text
#110609
muted
#807A7B

Preview Lab

Preview with #8A1F4C

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

Preview Lab → · Contrast checker → · Palette generator →

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