#8A1D52#8A1D52

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

Color values

HEX#8A1D52
RGBrgb(138, 29, 82)
HSLhsl(331, 65%, 33%)
HSVhsv(331, 79%, 54%)
CMYKcmyk(0%, 79%, 40.6%, 45.9%)
CIE-LABlab(31.56, 48.89, -3.99)
CIE-LCHlch(31.56, 49.05, 355.33°)
OKLaboklab(42.99% 0.1503 -0.0099)
OKLCHoklch(42.99% 0.151 356.2)
XYZxyz(12.4445, 6.8928, 8.6561)
Luminance0.0689 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1D52 #1D8A55
analogous
#8A1D88 #8A1D52 #8A1F1D
triadic
#8A1D52 #528A1D #1D528A
tetradic
#8A1D52 #888A1D #1D8A55 #1F1D8A
square
#8A1D52 #888A1D #1D8A55 #1F1D8A
split-complementary
#8A1D52 #1D8A1F #1D888A
monochromatic
#250816 #571234 #8A1D52 #BD2870 #D9498F

Accessibility & contrast

On white

8.83
#8A1D52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1D52
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1D52#FFFFFF#000000##FFFFFF
##8A1D521.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#343D53
Deuteranopia (green-blind)
#525250
Tritanopia (blue-blind)
#960D35
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #8a1d52;
/* rgb */ color: rgb(138, 29, 82);
/* oklch */ color: oklch(43.0% 0.151 356.2);
Tailwind
colors: {
  custom: {
    50: '#b16582',
    500: '#8a1d52',
    950: '#000000',
  },
}
SCSS
$custom: #8a1d52;
$custom-light: #b16582;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1d52",
  "rgb": {
    "r": 138,
    "g": 29,
    "b": 82
  },
  "hsl": {
    "h": 330.826,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.42986,
    "c": 0.15059,
    "h": 356.2
  },
  "luminance": 0.06891
}

Semantic roles & 50–950 ramp

primary
#8A1D52
secondary
#48BB83
accent
#E89640
background
#FBF6F7
surface
#F6EBEE
border
#D0C6C9
text
#11060A
muted
#807A7C

Preview Lab

Preview with #8A1D52

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

Preview Lab → · Contrast checker → · Palette generator →

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