#87228E#87228E

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

Color values

HEX#87228E
RGBrgb(135, 34, 142)
HSLhsl(296, 61%, 35%)
HSVhsv(296, 76%, 56%)
CMYKcmyk(4.9%, 76.1%, 0%, 44.3%)
CIE-LABlab(34.50, 55.20, -37.59)
CIE-LCHlch(34.50, 66.78, 325.74°)
OKLaboklab(45.95% 0.1504 -0.1047)
OKLCHoklch(45.95% 0.183 325.2)
XYZxyz(15.4458, 8.2490, 26.3646)
Luminance0.0825 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87228E #298E22
analogous
#51228E #87228E #8E225F
triadic
#87228E #8E8722 #228E87
tetradic
#87228E #8E5122 #298E22 #225F8E
square
#87228E #8E5122 #298E22 #225F8E
split-complementary
#87228E #5F8E22 #228E51
monochromatic
#290A2B #58165D #87228E #B62EBF #CE54D6

Accessibility & contrast

On white

7.93
#87228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#87228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87228E
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87228E#FFFFFF#000000##FFFFFF
##87228E1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#39558B
Tritanopia (blue-blind)
#8A3557
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #87228e;
/* rgb */ color: rgb(135, 34, 142);
/* oklch */ color: oklch(45.9% 0.183 325.2);
Tailwind
colors: {
  custom: {
    50: '#ad69af',
    500: '#87228e',
    950: '#000000',
  },
}
SCSS
$custom: #87228e;
$custom-light: #ad69af;
$custom-dark: #000000;
JSON
{
  "hex": "#87228e",
  "rgb": {
    "r": 135,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 296.111,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.45945,
    "c": 0.18324,
    "h": 325.2
  },
  "luminance": 0.08248
}

Semantic roles & 50–950 ramp

primary
#87228E
secondary
#59BA52
accent
#E4434E
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #87228E

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

Preview Lab → · Contrast checker → · Palette generator →

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