#8A1F51#8A1F51

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

Color values

HEX#8A1F51
RGBrgb(138, 31, 81)
HSLhsl(332, 63%, 33%)
HSVhsv(332, 78%, 54%)
CMYKcmyk(0%, 77.5%, 41.3%, 45.9%)
CIE-LABlab(31.76, 48.12, -3.05)
CIE-LCHlch(31.76, 48.22, 356.38°)
OKLaboklab(43.12% 0.1479 -0.0074)
OKLCHoklch(43.12% 0.148 357.1)
XYZxyz(12.4573, 6.9789, 8.4741)
Luminance0.0698 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F51 #1F8A58
analogous
#8A1F86 #8A1F51 #8A231F
triadic
#8A1F51 #518A1F #1F518A
tetradic
#8A1F51 #868A1F #1F8A58 #231F8A
square
#8A1F51 #868A1F #1F8A58 #231F8A
split-complementary
#8A1F51 #1F8A23 #1F868A
monochromatic
#260916 #581434 #8A1F51 #BC2A6E #D74C8D

Accessibility & contrast

On white

8.77
#8A1F51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1F51
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F51#FFFFFF#000000##FFFFFF
##8A1F511.008.772.408.77
#FFFFFF8.771.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#363E52
Deuteranopia (green-blind)
#53524F
Tritanopia (blue-blind)
#960F35
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #8a1f51;
/* rgb */ color: rgb(138, 31, 81);
/* oklch */ color: oklch(43.1% 0.148 357.1);
Tailwind
colors: {
  custom: {
    50: '#b16681',
    500: '#8a1f51',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f51;
$custom-light: #b16681;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f51",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 81
  },
  "hsl": {
    "h": 331.963,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43119,
    "c": 0.14804,
    "h": 357.1
  },
  "luminance": 0.06977
}

Semantic roles & 50–950 ramp

primary
#8A1F51
secondary
#4BBA86
accent
#E69941
background
#FBF6F7
surface
#F6EBEE
border
#D0C6C9
text
#11060A
muted
#807A7C

Preview Lab

Preview with #8A1F51

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

Preview Lab → · Contrast checker → · Palette generator →

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