#87227D#87227D

#87227D is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.9% C 0.170 H 332.4°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#87227D
RGBrgb(135, 34, 125)
HSLhsl(306, 60%, 33%)
HSVhsv(306, 75%, 53%)
CMYKcmyk(0%, 74.8%, 7.4%, 47.1%)
CIE-LABlab(33.51, 52.30, -28.60)
CIE-LCHlch(33.51, 59.61, 331.33°)
OKLaboklab(44.92% 0.1503 -0.0786)
OKLCHoklch(44.92% 0.17 332.4)
XYZxyz(14.2654, 7.7768, 20.1478)
Luminance0.0778 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87227D #22872C
analogous
#5E2287 #87227D #87224A
triadic
#87227D #7D8722 #227D87
tetradic
#87227D #875E22 #22872C #224A87
square
#87227D #875E22 #22872C #224A87
split-complementary
#87227D #4A8722 #22875E
monochromatic
#250922 #561650 #87227D #B82EAA #D350C6

Accessibility & contrast

On white

8.22
#87227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#87227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87227D
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87227D#FFFFFF#000000##FFFFFF
##87227D1.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C467F
Deuteranopia (green-blind)
#43547B
Tritanopia (blue-blind)
#8D2D4D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #87227d;
/* rgb */ color: rgb(135, 34, 125);
/* oklch */ color: oklch(44.9% 0.170 332.4);
Tailwind
colors: {
  custom: {
    50: '#ad68a3',
    500: '#87227d',
    950: '#000000',
  },
}
SCSS
$custom: #87227d;
$custom-light: #ad68a3;
$custom-dark: #000000;
JSON
{
  "hex": "#87227d",
  "rgb": {
    "r": 135,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 305.941,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44924,
    "c": 0.16964,
    "h": 332.4
  },
  "luminance": 0.07776
}

Semantic roles & 50–950 ramp

primary
#87227D
secondary
#4EB759
accent
#E35545
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #87227D

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

Preview Lab → · Contrast checker → · Palette generator →

#87227D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva