#87228C#87228C

#87228C is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.8% C 0.182 H 326.0°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#87228C
RGBrgb(135, 34, 140)
HSLhsl(297, 61%, 34%)
HSVhsv(297, 76%, 55%)
CMYKcmyk(3.6%, 75.7%, 0%, 45.1%)
CIE-LABlab(34.37, 54.84, -36.56)
CIE-LCHlch(34.37, 65.91, 326.31°)
OKLaboklab(45.82% 0.1505 -0.1017)
OKLCHoklch(45.82% 0.182 326)
XYZxyz(15.2970, 8.1894, 25.5809)
Luminance0.0819 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87228C #278C22
analogous
#52228C #87228C #8C225C
triadic
#87228C #8C8722 #228C87
tetradic
#87228C #8C5222 #278C22 #225C8C
square
#87228C #8C5222 #278C22 #225C8C
split-complementary
#87228C #5C8C22 #228C52
monochromatic
#280A2A #58165B #87228C #B62EBD #CF53D5

Accessibility & contrast

On white

7.96
#87228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#87228C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87228C
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87228C#FFFFFF#000000##FFFFFF
##87228C1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00498F
Deuteranopia (green-blind)
#3A5589
Tritanopia (blue-blind)
#8A3455
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #87228c;
/* rgb */ color: rgb(135, 34, 140);
/* oklch */ color: oklch(45.8% 0.182 326.0);
Tailwind
colors: {
  custom: {
    50: '#ad69ae',
    500: '#87228c',
    950: '#000000',
  },
}
SCSS
$custom: #87228c;
$custom-light: #ad69ae;
$custom-dark: #000000;
JSON
{
  "hex": "#87228c",
  "rgb": {
    "r": 135,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 297.17,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.45819,
    "c": 0.18161,
    "h": 326
  },
  "luminance": 0.08188
}

Semantic roles & 50–950 ramp

primary
#87228C
secondary
#56B951
accent
#E4444B
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #87228C

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

Preview Lab → · Contrast checker → · Palette generator →

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