#8B2872#8B2872

#8B2872 is a mid, vivid pink. Relative luminance 0.082; OKLCH L 45.6% C 0.157 H 339.6°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#8B2872
RGBrgb(139, 40, 114)
HSLhsl(315, 55%, 35%)
HSVhsv(315, 71%, 55%)
CMYKcmyk(0%, 71.2%, 18%, 45.5%)
CIE-LABlab(34.44, 49.40, -20.18)
CIE-LCHlch(34.44, 53.36, 337.78°)
OKLaboklab(45.55% 0.1468 -0.0545)
OKLCHoklch(45.55% 0.157 339.6)
XYZxyz(14.4439, 8.2228, 16.7428)
Luminance0.0822 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2872 #288B41
analogous
#73288B #8B2872 #8B2840
triadic
#8B2872 #728B28 #28728B
tetradic
#8B2872 #8B7328 #288B41 #28408B
square
#8B2872 #8B7328 #288B41 #28408B
split-complementary
#8B2872 #408B28 #288B73
monochromatic
#2C0D24 #5B1A4B #8B2872 #BB3699 #D05DB3

Accessibility & contrast

On white

7.94
#8B2872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8B2872
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2872#FFFFFF#000000##FFFFFF
##8B28721.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4774
Deuteranopia (green-blind)
#4D5770
Tritanopia (blue-blind)
#932B49
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8b2872;
/* rgb */ color: rgb(139, 40, 114);
/* oklch */ color: oklch(45.6% 0.157 339.6);
Tailwind
colors: {
  custom: {
    50: '#b06b9a',
    500: '#8b2872',
    950: '#000000',
  },
}
SCSS
$custom: #8b2872;
$custom-light: #b06b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2872",
  "rgb": {
    "r": 139,
    "g": 40,
    "b": 114
  },
  "hsl": {
    "h": 315.152,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.45551,
    "c": 0.15661,
    "h": 339.6
  },
  "luminance": 0.08221
}

Semantic roles & 50–950 ramp

primary
#8B2872
secondary
#59B670
accent
#DF6F49
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8B2872

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

Preview Lab → · Contrast checker → · Palette generator →

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