#87228B#87228B

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

Color values

HEX#87228B
RGBrgb(135, 34, 139)
HSLhsl(298, 61%, 34%)
HSVhsv(298, 76%, 55%)
CMYKcmyk(2.9%, 75.5%, 0%, 45.5%)
CIE-LABlab(34.31, 54.67, -36.04)
CIE-LCHlch(34.31, 65.48, 326.61°)
OKLaboklab(45.76% 0.1505 -0.1001)
OKLCHoklch(45.76% 0.181 326.4)
XYZxyz(15.2236, 8.1601, 25.1943)
Luminance0.0816 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87228B #268B22
analogous
#53228B #87228B #8B225B
triadic
#87228B #8B8722 #228B87
tetradic
#87228B #8B5322 #268B22 #225B8B
square
#87228B #8B5322 #268B22 #225B8B
split-complementary
#87228B #5B8B22 #228B53
monochromatic
#270A29 #57165A #87228B #B72EBC #D053D5

Accessibility & contrast

On white

7.98
#87228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#87228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87228B
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87228B#FFFFFF#000000##FFFFFF
##87228B1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03498E
Deuteranopia (green-blind)
#3B5588
Tritanopia (blue-blind)
#8B3455
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #87228b;
/* rgb */ color: rgb(135, 34, 139);
/* oklch */ color: oklch(45.8% 0.181 326.4);
Tailwind
colors: {
  custom: {
    50: '#ad69ad',
    500: '#87228b',
    950: '#000000',
  },
}
SCSS
$custom: #87228b;
$custom-light: #ad69ad;
$custom-dark: #000000;
JSON
{
  "hex": "#87228b",
  "rgb": {
    "r": 135,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 297.714,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.45756,
    "c": 0.18079,
    "h": 326.4
  },
  "luminance": 0.08159
}

Semantic roles & 50–950 ramp

primary
#87228B
secondary
#54B850
accent
#E4444A
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #87228B

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

Preview Lab → · Contrast checker → · Palette generator →

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