#8A2872#8A2872

#8A2872 is a mid, vivid pink. Relative luminance 0.081; OKLCH L 45.4% C 0.156 H 339.2°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#8A2872
RGBrgb(138, 40, 114)
HSLhsl(315, 55%, 35%)
HSVhsv(315, 71%, 54%)
CMYKcmyk(0%, 71%, 17.4%, 45.9%)
CIE-LABlab(34.27, 49.13, -20.46)
CIE-LCHlch(34.27, 53.22, 337.38°)
OKLaboklab(45.39% 0.1458 -0.0553)
OKLCHoklch(45.39% 0.156 339.2)
XYZxyz(14.2776, 8.1371, 16.7350)
Luminance0.0814 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2872 #288A40
analogous
#71288A #8A2872 #8A2841
triadic
#8A2872 #728A28 #28728A
tetradic
#8A2872 #8A7128 #288A40 #28418A
square
#8A2872 #8A7128 #288A40 #28418A
split-complementary
#8A2872 #418A28 #288A71
monochromatic
#2B0C24 #5B1A4B #8A2872 #B93699 #D05DB4

Accessibility & contrast

On white

7.99
#8A2872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8A2872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2872
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2872#FFFFFF#000000##FFFFFF
##8A28721.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a2872;
/* rgb */ color: rgb(138, 40, 114);
/* oklch */ color: oklch(45.4% 0.156 339.2);
Tailwind
colors: {
  custom: {
    50: '#af6b9a',
    500: '#8a2872',
    950: '#000000',
  },
}
SCSS
$custom: #8a2872;
$custom-light: #af6b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2872",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 114
  },
  "hsl": {
    "h": 314.694,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45389,
    "c": 0.15592,
    "h": 339.2
  },
  "luminance": 0.08136
}

Semantic roles & 50–950 ramp

primary
#8A2872
secondary
#59B56F
accent
#DE6E49
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8A2872

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

Preview Lab → · Contrast checker → · Palette generator →

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