#87229E#87229E

#87229E is a mid, vivid purple. Relative luminance 0.088; OKLCH L 47.0% C 0.197 H 319.2°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#87229E
RGBrgb(135, 34, 158)
HSLhsl(289, 65%, 38%)
HSVhsv(289, 78%, 62%)
CMYKcmyk(14.6%, 78.5%, 0%, 38%)
CIE-LABlab(35.53, 58.14, -45.71)
CIE-LCHlch(35.53, 73.96, 321.83°)
OKLaboklab(47.01% 0.149 -0.1284)
OKLCHoklch(47.01% 0.197 319.2)
XYZxyz(16.7344, 8.7644, 33.1514)
Luminance0.0876 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87229E #399E22
analogous
#49229E #87229E #9E2277
triadic
#87229E #9E8722 #229E87
tetradic
#87229E #9E4922 #399E22 #22779E
square
#87229E #9E4922 #399E22 #22779E
split-complementary
#87229E #779E22 #229E49
monochromatic
#310C39 #5C176C #87229E #B22DD0 #C55EDC

Accessibility & contrast

On white

7.63
#87229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#87229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87229E
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87229E#FFFFFF#000000##FFFFFF
##87229E1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA1
Deuteranopia (green-blind)
#2C579B
Tritanopia (blue-blind)
#873D60
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #87229e;
/* rgb */ color: rgb(135, 34, 158);
/* oklch */ color: oklch(47.0% 0.197 319.2);
Tailwind
colors: {
  custom: {
    50: '#ae6abb',
    500: '#87229e',
    950: '#000000',
  },
}
SCSS
$custom: #87229e;
$custom-light: #ae6abb;
$custom-dark: #000000;
JSON
{
  "hex": "#87229e",
  "rgb": {
    "r": 135,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 288.871,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.47005,
    "c": 0.19668,
    "h": 319.2
  },
  "luminance": 0.08764
}

Semantic roles & 50–950 ramp

primary
#87229E
secondary
#6EC15B
accent
#E8405F
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #87229E

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

Preview Lab → · Contrast checker → · Palette generator →

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