#87277F#87277F

#87277F is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.5% C 0.165 H 331.5°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#87277F
RGBrgb(135, 39, 127)
HSLhsl(305, 55%, 34%)
HSVhsv(305, 71%, 53%)
CMYKcmyk(0%, 71.1%, 5.9%, 47.1%)
CIE-LABlab(34.26, 50.81, -28.67)
CIE-LCHlch(34.26, 58.34, 330.56°)
OKLaboklab(45.5% 0.1452 -0.0788)
OKLCHoklch(45.5% 0.165 331.5)
XYZxyz(14.5479, 8.1354, 20.8786)
Luminance0.0813 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87277F #27872F
analogous
#5F2787 #87277F #87274F
triadic
#87277F #7F8727 #277F87
tetradic
#87277F #875F27 #27872F #274F87
square
#87277F #875F27 #27872F #274F87
split-complementary
#87277F #4F8727 #27875F
monochromatic
#280C26 #581952 #87277F #B635AC #CF59C5

Accessibility & contrast

On white

7.99
#87277F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#87277F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87277F
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87277F#FFFFFF#000000##FFFFFF
##87277F1.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)
#204881
Deuteranopia (green-blind)
#44557D
Tritanopia (blue-blind)
#8D3150
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #87277f;
/* rgb */ color: rgb(135, 39, 127);
/* oklch */ color: oklch(45.5% 0.165 331.5);
Tailwind
colors: {
  custom: {
    50: '#ad6aa4',
    500: '#87277f',
    950: '#000000',
  },
}
SCSS
$custom: #87277f;
$custom-light: #ad6aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#87277f",
  "rgb": {
    "r": 135,
    "g": 39,
    "b": 127
  },
  "hsl": {
    "h": 305,
    "s": 55.172,
    "l": 34.118
  },
  "oklch": {
    "l": 0.45499,
    "c": 0.1652,
    "h": 331.5
  },
  "luminance": 0.08134
}

Semantic roles & 50–950 ramp

primary
#87277F
secondary
#56B45E
accent
#DF5649
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #87277F

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

Preview Lab → · Contrast checker → · Palette generator →

#87277F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva