#87229F#87229F

#87229F is a mid, vivid purple. Relative luminance 0.088; OKLCH L 47.1% C 0.198 H 318.9°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#87229F
RGBrgb(135, 34, 159)
HSLhsl(288, 65%, 38%)
HSVhsv(288, 79%, 62%)
CMYKcmyk(15.1%, 78.6%, 0%, 37.6%)
CIE-LABlab(35.59, 58.33, -46.21)
CIE-LCHlch(35.59, 74.41, 321.62°)
OKLaboklab(47.08% 0.1488 -0.1299)
OKLCHoklch(47.08% 0.198 318.9)
XYZxyz(16.8209, 8.7990, 33.6065)
Luminance0.0880 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87229F #3A9F22
analogous
#48229F #87229F #9F2278
triadic
#87229F #9F8722 #229F87
tetradic
#87229F #9F4822 #3A9F22 #22789F
square
#87229F #9F4822 #3A9F22 #22789F
split-complementary
#87229F #789F22 #229F48
monochromatic
#310C3A #5C176D #87229F #B22DD1 #C55FDD

Accessibility & contrast

On white

7.61
#87229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#87229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87229F
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87229F#FFFFFF#000000##FFFFFF
##87229F1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #87229f;
/* rgb */ color: rgb(135, 34, 159);
/* oklch */ color: oklch(47.1% 0.198 318.9);
Tailwind
colors: {
  custom: {
    50: '#ae6abc',
    500: '#87229f',
    950: '#000000',
  },
}
SCSS
$custom: #87229f;
$custom-light: #ae6abc;
$custom-dark: #000000;
JSON
{
  "hex": "#87229f",
  "rgb": {
    "r": 135,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 288.48,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.47075,
    "c": 0.19753,
    "h": 318.9
  },
  "luminance": 0.08798
}

Semantic roles & 50–950 ramp

primary
#87229F
secondary
#6FC15B
accent
#E84060
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #87229F

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

Preview Lab → · Contrast checker → · Palette generator →

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