#8A1F52#8A1F52

#8A1F52 is a dark, vivid pink. Relative luminance 0.070; OKLCH L 43.2% C 0.148 H 356.5°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#8A1F52
RGBrgb(138, 31, 82)
HSLhsl(331, 63%, 33%)
HSVhsv(331, 78%, 54%)
CMYKcmyk(0%, 77.5%, 40.6%, 45.9%)
CIE-LABlab(31.79, 48.23, -3.65)
CIE-LCHlch(31.79, 48.37, 355.67°)
OKLaboklab(43.16% 0.1482 -0.009)
OKLCHoklch(43.16% 0.148 356.5)
XYZxyz(12.4951, 6.9940, 8.6730)
Luminance0.0699 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F52 #1F8A57
analogous
#8A1F87 #8A1F52 #8A211F
triadic
#8A1F52 #528A1F #1F528A
tetradic
#8A1F52 #878A1F #1F8A57 #211F8A
square
#8A1F52 #878A1F #1F8A57 #211F8A
split-complementary
#8A1F52 #1F8A21 #1F878A
monochromatic
#260917 #581434 #8A1F52 #BC2A70 #D74C8E

Accessibility & contrast

On white

8.76
#8A1F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#8A1F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F52
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F52#FFFFFF#000000##FFFFFF
##8A1F521.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#353E53
Deuteranopia (green-blind)
#535250
Tritanopia (blue-blind)
#961036
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #8a1f52;
/* rgb */ color: rgb(138, 31, 82);
/* oklch */ color: oklch(43.2% 0.148 356.5);
Tailwind
colors: {
  custom: {
    50: '#b16682',
    500: '#8a1f52',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f52;
$custom-light: #b16682;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f52",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 82
  },
  "hsl": {
    "h": 331.402,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43155,
    "c": 0.14844,
    "h": 356.5
  },
  "luminance": 0.06992
}

Semantic roles & 50–950 ramp

primary
#8A1F52
secondary
#4BBA85
accent
#E69841
background
#FBF6F7
surface
#F6EBEE
border
#D0C6C9
text
#11060A
muted
#807A7C

Preview Lab

Preview with #8A1F52

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

Preview Lab → · Contrast checker → · Palette generator →

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