#87229C#87229C

#87229C is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.9% C 0.195 H 319.9°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#87229C
RGBrgb(135, 34, 156)
HSLhsl(290, 64%, 37%)
HSVhsv(290, 78%, 61%)
CMYKcmyk(13.5%, 78.2%, 0%, 38.8%)
CIE-LABlab(35.39, 57.76, -44.71)
CIE-LCHlch(35.39, 73.05, 322.26°)
OKLaboklab(46.87% 0.1492 -0.1255)
OKLCHoklch(46.87% 0.195 319.9)
XYZxyz(16.5637, 8.6961, 32.2521)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87229C #379C22
analogous
#4A229C #87229C #9C2274
triadic
#87229C #9C8722 #229C87
tetradic
#87229C #9C4A22 #379C22 #22749C
square
#87229C #9C4A22 #379C22 #22749C
split-complementary
#87229C #749C22 #229C4A
monochromatic
#300C38 #5C176A #87229C #B22DCE #C65DDC

Accessibility & contrast

On white

7.67
#87229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#87229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87229C
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87229C#FFFFFF#000000##FFFFFF
##87229C1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9F
Deuteranopia (green-blind)
#2E5799
Tritanopia (blue-blind)
#873C5F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #87229c;
/* rgb */ color: rgb(135, 34, 156);
/* oklch */ color: oklch(46.9% 0.195 319.9);
Tailwind
colors: {
  custom: {
    50: '#ae69ba',
    500: '#87229c',
    950: '#000000',
  },
}
SCSS
$custom: #87229c;
$custom-light: #ae69ba;
$custom-dark: #000000;
JSON
{
  "hex": "#87229c",
  "rgb": {
    "r": 135,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 289.672,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.46868,
    "c": 0.19498,
    "h": 319.9
  },
  "luminance": 0.08695
}

Semantic roles & 50–950 ramp

primary
#87229C
secondary
#6BC05A
accent
#E7415D
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #87229C

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

Preview Lab → · Contrast checker → · Palette generator →

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