#872271#872271

#872271 is a dark, vivid pink. Relative luminance 0.075; OKLCH L 44.3% C 0.161 H 338.2°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#872271
RGBrgb(135, 34, 113)
HSLhsl(313, 60%, 33%)
HSVhsv(313, 75%, 53%)
CMYKcmyk(0%, 74.8%, 16.3%, 47.1%)
CIE-LABlab(32.89, 50.41, -22.01)
CIE-LCHlch(32.89, 55.01, 336.42°)
OKLaboklab(44.28% 0.1492 -0.0597)
OKLCHoklch(44.28% 0.161 338.2)
XYZxyz(13.5446, 7.4885, 16.3517)
Luminance0.0749 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872271 #228738
analogous
#6A2287 #872271 #87223F
triadic
#872271 #718722 #227187
tetradic
#872271 #876A22 #228738 #223F87
square
#872271 #876A22 #228738 #223F87
split-complementary
#872271 #3F8722 #22876A
monochromatic
#25091F #561648 #872271 #B82E9A #D350B7

Accessibility & contrast

On white

8.41
#872271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#872271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #872271
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872271#FFFFFF#000000##FFFFFF
##8722711.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274373
Deuteranopia (green-blind)
#48536F
Tritanopia (blue-blind)
#8F2747
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #872271;
/* rgb */ color: rgb(135, 34, 113);
/* oklch */ color: oklch(44.3% 0.161 338.2);
Tailwind
colors: {
  custom: {
    50: '#ad689a',
    500: '#872271',
    950: '#000000',
  },
}
SCSS
$custom: #872271;
$custom-light: #ad689a;
$custom-dark: #000000;
JSON
{
  "hex": "#872271",
  "rgb": {
    "r": 135,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 313.069,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44276,
    "c": 0.16071,
    "h": 338.2
  },
  "luminance": 0.07487
}

Semantic roles & 50–950 ramp

primary
#872271
secondary
#4EB765
accent
#E36745
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #872271

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

Preview Lab → · Contrast checker → · Palette generator →

#872271 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva