#8A2972#8A2972

#8A2972 is a mid, vivid pink. Relative luminance 0.082; OKLCH L 45.5% C 0.155 H 339.3°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#8A2972
RGBrgb(138, 41, 114)
HSLhsl(315, 54%, 35%)
HSVhsv(315, 70%, 54%)
CMYKcmyk(0%, 70.3%, 17.4%, 45.9%)
CIE-LABlab(34.41, 48.73, -20.25)
CIE-LCHlch(34.41, 52.77, 337.44°)
OKLaboklab(45.49% 0.1446 -0.0547)
OKLCHoklch(45.49% 0.155 339.3)
XYZxyz(14.3118, 8.2054, 16.7464)
Luminance0.0820 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2972 #298A41
analogous
#71298A #8A2972 #8A2942
triadic
#8A2972 #728A29 #29728A
tetradic
#8A2972 #8A7129 #298A41 #29428A
square
#8A2972 #8A7129 #298A41 #29428A
split-complementary
#8A2972 #428A29 #298A71
monochromatic
#2C0D24 #5B1B4B #8A2972 #B93799 #CF5EB3

Accessibility & contrast

On white

7.95
#8A2972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#8A2972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2972
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2972#FFFFFF#000000##FFFFFF
##8A29721.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4774
Deuteranopia (green-blind)
#4D5670
Tritanopia (blue-blind)
#922C4A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a2972;
/* rgb */ color: rgb(138, 41, 114);
/* oklch */ color: oklch(45.5% 0.155 339.3);
Tailwind
colors: {
  custom: {
    50: '#af6b9a',
    500: '#8a2972',
    950: '#000000',
  },
}
SCSS
$custom: #8a2972;
$custom-light: #af6b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2972",
  "rgb": {
    "r": 138,
    "g": 41,
    "b": 114
  },
  "hsl": {
    "h": 314.845,
    "s": 54.19,
    "l": 35.098
  },
  "oklch": {
    "l": 0.45491,
    "c": 0.1546,
    "h": 339.3
  },
  "luminance": 0.08204
}

Semantic roles & 50–950 ramp

primary
#8A2972
secondary
#5AB570
accent
#DE6F4A
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2972

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

Preview Lab → · Contrast checker → · Palette generator →

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