#87228F#87228F

#87228F is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.0% C 0.184 H 324.8°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#87228F
RGBrgb(135, 34, 143)
HSLhsl(296, 62%, 35%)
HSVhsv(296, 76%, 56%)
CMYKcmyk(5.6%, 76.2%, 0%, 43.9%)
CIE-LABlab(34.56, 55.38, -38.11)
CIE-LCHlch(34.56, 67.22, 325.46°)
OKLaboklab(46.01% 0.1504 -0.1062)
OKLCHoklch(46.01% 0.184 324.8)
XYZxyz(15.5212, 8.2791, 26.7618)
Luminance0.0828 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87228F #2A8F22
analogous
#50228F #87228F #8F2261
triadic
#87228F #8F8722 #228F87
tetradic
#87228F #8F5022 #2A8F22 #22618F
square
#87228F #8F5022 #2A8F22 #22618F
split-complementary
#87228F #618F22 #228F50
monochromatic
#2A0A2C #58165E #87228F #B62EC0 #CD55D7

Accessibility & contrast

On white

7.91
#87228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#87228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87228F
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87228F#FFFFFF#000000##FFFFFF
##87228F1.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#38558C
Tritanopia (blue-blind)
#8A3657
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #87228f;
/* rgb */ color: rgb(135, 34, 143);
/* oklch */ color: oklch(46.0% 0.184 324.8);
Tailwind
colors: {
  custom: {
    50: '#ad69b0',
    500: '#87228f',
    950: '#000000',
  },
}
SCSS
$custom: #87228f;
$custom-light: #ad69b0;
$custom-dark: #000000;
JSON
{
  "hex": "#87228f",
  "rgb": {
    "r": 135,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 295.596,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46008,
    "c": 0.18408,
    "h": 324.8
  },
  "luminance": 0.08278
}

Semantic roles & 50–950 ramp

primary
#87228F
secondary
#5ABA52
accent
#E5434F
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #87228F

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

Preview Lab → · Contrast checker → · Palette generator →

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