#8A1572#8A1572

#8A1572 is a dark, vivid pink. Relative luminance 0.072; OKLCH L 43.9% C 0.176 H 338.5°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#8A1572
RGBrgb(138, 21, 114)
HSLhsl(312, 74%, 31%)
HSVhsv(312, 85%, 54%)
CMYKcmyk(0%, 84.8%, 17.4%, 45.9%)
CIE-LABlab(32.16, 55.13, -23.75)
CIE-LCHlch(32.16, 60.03, 336.69°)
OKLaboklab(43.87% 0.1639 -0.0645)
OKLCHoklch(43.87% 0.176 338.5)
XYZxyz(13.7870, 7.1559, 16.5715)
Luminance0.0716 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1572 #158A2D
analogous
#67158A #8A1572 #8A1537
triadic
#8A1572 #728A15 #15728A
tetradic
#8A1572 #8A6715 #158A2D #15378A
square
#8A1572 #8A6715 #158A2D #15378A
split-complementary
#8A1572 #378A15 #158A67
monochromatic
#20051A #550D46 #8A1572 #BF1D9E #E139BE

Accessibility & contrast

On white

8.64
#8A1572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#8A1572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1572
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1572#FFFFFF#000000##FFFFFF
##8A15721.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4074
Deuteranopia (green-blind)
#46526F
Tritanopia (blue-blind)
#921C44
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #8a1572;
/* rgb */ color: rgb(138, 21, 114);
/* oklch */ color: oklch(43.9% 0.176 338.5);
Tailwind
colors: {
  custom: {
    50: '#b0639b',
    500: '#8a1572',
    950: '#000000',
  },
}
SCSS
$custom: #8a1572;
$custom-light: #b0639b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1572",
  "rgb": {
    "r": 138,
    "g": 21,
    "b": 114
  },
  "hsl": {
    "h": 312.308,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43867,
    "c": 0.17614,
    "h": 338.5
  },
  "luminance": 0.07155
}

Semantic roles & 50–950 ramp

primary
#8A1572
secondary
#3DBE57
accent
#F05D38
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #8A1572

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

Preview Lab → · Contrast checker → · Palette generator →

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