#87227A#87227A

#87227A is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.8% C 0.167 H 333.8°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#87227A
RGBrgb(135, 34, 122)
HSLhsl(308, 60%, 33%)
HSVhsv(308, 75%, 53%)
CMYKcmyk(0%, 74.8%, 9.6%, 47.1%)
CIE-LABlab(33.35, 51.81, -26.97)
CIE-LCHlch(33.35, 58.41, 332.50°)
OKLaboklab(44.76% 0.1502 -0.0739)
OKLCHoklch(44.76% 0.167 333.8)
XYZxyz(14.0767, 7.7013, 19.1537)
Luminance0.0770 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87227A #22872F
analogous
#612287 #87227A #872247
triadic
#87227A #7A8722 #227A87
tetradic
#87227A #876122 #22872F #224787
square
#87227A #876122 #22872F #224787
split-complementary
#87227A #478722 #228761
monochromatic
#250922 #56164E #87227A #B82EA6 #D350C2

Accessibility & contrast

On white

8.27
#87227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#87227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87227A
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87227A#FFFFFF#000000##FFFFFF
##87227A1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F457C
Deuteranopia (green-blind)
#445478
Tritanopia (blue-blind)
#8D2B4C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #87227a;
/* rgb */ color: rgb(135, 34, 122);
/* oklch */ color: oklch(44.8% 0.167 333.8);
Tailwind
colors: {
  custom: {
    50: '#ad68a1',
    500: '#87227a',
    950: '#000000',
  },
}
SCSS
$custom: #87227a;
$custom-light: #ad68a1;
$custom-dark: #000000;
JSON
{
  "hex": "#87227a",
  "rgb": {
    "r": 135,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 307.723,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44757,
    "c": 0.16735,
    "h": 333.8
  },
  "luminance": 0.077
}

Semantic roles & 50–950 ramp

primary
#87227A
secondary
#4EB75C
accent
#E35945
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #87227A

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

Preview Lab → · Contrast checker → · Palette generator →

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