#87227C#87227C

#87227C is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.9% C 0.169 H 332.9°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#87227C
RGBrgb(135, 34, 124)
HSLhsl(307, 60%, 33%)
HSVhsv(307, 75%, 53%)
CMYKcmyk(0%, 74.8%, 8.1%, 47.1%)
CIE-LABlab(33.46, 52.13, -28.06)
CIE-LCHlch(33.46, 59.20, 331.71°)
OKLaboklab(44.87% 0.1503 -0.077)
OKLCHoklch(44.87% 0.169 332.9)
XYZxyz(14.2019, 7.7514, 19.8131)
Luminance0.0775 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87227C #22872D
analogous
#5F2287 #87227C #872249
triadic
#87227C #7C8722 #227C87
tetradic
#87227C #875F22 #22872D #224987
square
#87227C #875F22 #22872D #224987
split-complementary
#87227C #498722 #22875F
monochromatic
#250922 #56164F #87227C #B82EA9 #D350C5

Accessibility & contrast

On white

8.24
#87227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#87227C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87227C
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87227C#FFFFFF#000000##FFFFFF
##87227C1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D457E
Deuteranopia (green-blind)
#43547A
Tritanopia (blue-blind)
#8D2C4D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #87227c;
/* rgb */ color: rgb(135, 34, 124);
/* oklch */ color: oklch(44.9% 0.169 332.9);
Tailwind
colors: {
  custom: {
    50: '#ad68a2',
    500: '#87227c',
    950: '#000000',
  },
}
SCSS
$custom: #87227c;
$custom-light: #ad68a2;
$custom-dark: #000000;
JSON
{
  "hex": "#87227c",
  "rgb": {
    "r": 135,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 306.535,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44868,
    "c": 0.16887,
    "h": 332.9
  },
  "luminance": 0.0775
}

Semantic roles & 50–950 ramp

primary
#87227C
secondary
#4EB75A
accent
#E35645
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #87227C

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

Preview Lab → · Contrast checker → · Palette generator →

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