#87227F#87227F

#87227F is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.0% C 0.171 H 331.5°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#87227F
RGBrgb(135, 34, 127)
HSLhsl(305, 60%, 33%)
HSVhsv(305, 75%, 53%)
CMYKcmyk(0%, 74.8%, 5.9%, 47.1%)
CIE-LABlab(33.62, 52.62, -29.68)
CIE-LCHlch(33.62, 60.42, 330.58°)
OKLaboklab(45.04% 0.1504 -0.0817)
OKLCHoklch(45.04% 0.171 331.5)
XYZxyz(14.3945, 7.8284, 20.8275)
Luminance0.0783 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87227F #22872A
analogous
#5C2287 #87227F #87224D
triadic
#87227F #7F8722 #227F87
tetradic
#87227F #875C22 #22872A #224D87
square
#87227F #875C22 #22872A #224D87
split-complementary
#87227F #4D8722 #22875C
monochromatic
#250923 #561651 #87227F #B82EAD #D350C9

Accessibility & contrast

On white

8.19
#87227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#87227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87227F
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87227F#FFFFFF#000000##FFFFFF
##87227F1.008.192.578.19
#FFFFFF8.191.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4682
Deuteranopia (green-blind)
#42547D
Tritanopia (blue-blind)
#8D2E4E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #87227f;
/* rgb */ color: rgb(135, 34, 127);
/* oklch */ color: oklch(45.0% 0.171 331.5);
Tailwind
colors: {
  custom: {
    50: '#ad68a4',
    500: '#87227f',
    950: '#000000',
  },
}
SCSS
$custom: #87227f;
$custom-light: #ad68a4;
$custom-dark: #000000;
JSON
{
  "hex": "#87227f",
  "rgb": {
    "r": 135,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 304.752,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.45038,
    "c": 0.17119,
    "h": 331.5
  },
  "luminance": 0.07827
}

Semantic roles & 50–950 ramp

primary
#87227F
secondary
#4EB757
accent
#E35145
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #87227F

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

Preview Lab → · Contrast checker → · Palette generator →

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