#8A1772#8A1772

#8A1772 is a dark, vivid pink. Relative luminance 0.072; OKLCH L 44.0% C 0.174 H 338.6°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#8A1772
RGBrgb(138, 23, 114)
HSLhsl(313, 71%, 32%)
HSVhsv(313, 83%, 54%)
CMYKcmyk(0%, 83.3%, 17.4%, 45.9%)
CIE-LABlab(32.33, 54.64, -23.48)
CIE-LCHlch(32.33, 59.47, 336.74°)
OKLaboklab(43.99% 0.1624 -0.0637)
OKLCHoklch(43.99% 0.174 338.6)
XYZxyz(13.8253, 7.2324, 16.5842)
Luminance0.0723 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1772 #178A2F
analogous
#69178A #8A1772 #8A1739
triadic
#8A1772 #728A17 #17728A
tetradic
#8A1772 #8A6917 #178A2F #17398A
square
#8A1772 #8A6917 #178A2F #17398A
split-complementary
#8A1772 #398A17 #178A69
monochromatic
#21061B #560E47 #8A1772 #BE209D #DF3DBD

Accessibility & contrast

On white

8.58
#8A1772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#8A1772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1772
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1772#FFFFFF#000000##FFFFFF
##8A17721.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4174
Deuteranopia (green-blind)
#47526F
Tritanopia (blue-blind)
#921E44
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #8a1772;
/* rgb */ color: rgb(138, 23, 114);
/* oklch */ color: oklch(44.0% 0.174 338.6);
Tailwind
colors: {
  custom: {
    50: '#b0649b',
    500: '#8a1772',
    950: '#000000',
  },
}
SCSS
$custom: #8a1772;
$custom-light: #b0649b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1772",
  "rgb": {
    "r": 138,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 312.522,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.4399,
    "c": 0.17447,
    "h": 338.6
  },
  "luminance": 0.07231
}

Semantic roles & 50–950 ramp

primary
#8A1772
secondary
#3FBE5A
accent
#EE5F3A
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #8A1772

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

Preview Lab → · Contrast checker → · Palette generator →

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