#87228D#87228D

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

Color values

HEX#87228D
RGBrgb(135, 34, 141)
HSLhsl(297, 61%, 34%)
HSVhsv(297, 76%, 55%)
CMYKcmyk(4.3%, 75.9%, 0%, 44.7%)
CIE-LABlab(34.44, 55.02, -37.08)
CIE-LCHlch(34.44, 66.35, 326.02°)
OKLaboklab(45.88% 0.1505 -0.1032)
OKLCHoklch(45.88% 0.182 325.6)
XYZxyz(15.3711, 8.2191, 25.9710)
Luminance0.0822 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87228D #288D22
analogous
#52228D #87228D #8D225D
triadic
#87228D #8D8722 #228D87
tetradic
#87228D #8D5222 #288D22 #225D8D
square
#87228D #8D5222 #288D22 #225D8D
split-complementary
#87228D #5D8D22 #228D52
monochromatic
#290A2A #58165C #87228D #B62EBE #CE54D6

Accessibility & contrast

On white

7.94
#87228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #87228D
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87228D#FFFFFF#000000##FFFFFF
##87228D1.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004990
Deuteranopia (green-blind)
#3A558A
Tritanopia (blue-blind)
#8A3556
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #87228d;
/* rgb */ color: rgb(135, 34, 141);
/* oklch */ color: oklch(45.9% 0.182 325.6);
Tailwind
colors: {
  custom: {
    50: '#ad69af',
    500: '#87228d',
    950: '#000000',
  },
}
SCSS
$custom: #87228d;
$custom-light: #ad69af;
$custom-dark: #000000;
JSON
{
  "hex": "#87228d",
  "rgb": {
    "r": 135,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 296.636,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45882,
    "c": 0.18243,
    "h": 325.6
  },
  "luminance": 0.08218
}

Semantic roles & 50–950 ramp

primary
#87228D
secondary
#57B951
accent
#E4444D
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #87228D

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

Preview Lab → · Contrast checker → · Palette generator →

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