#87227E#87227E

#87227E is a dark, vivid purple. Relative luminance 0.078; OKLCH L 45.0% C 0.170 H 331.9°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#87227E
RGBrgb(135, 34, 126)
HSLhsl(305, 60%, 33%)
HSVhsv(305, 75%, 53%)
CMYKcmyk(0%, 74.8%, 6.7%, 47.1%)
CIE-LABlab(33.57, 52.46, -29.14)
CIE-LCHlch(33.57, 60.01, 330.95°)
OKLaboklab(44.98% 0.1504 -0.0801)
OKLCHoklch(44.98% 0.17 331.9)
XYZxyz(14.3296, 7.8025, 20.4859)
Luminance0.0780 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87227E #22872B
analogous
#5E2287 #87227E #87224B
triadic
#87227E #7E8722 #227E87
tetradic
#87227E #875E22 #22872B #224B87
square
#87227E #875E22 #22872B #224B87
split-complementary
#87227E #4B8722 #22875E
monochromatic
#250923 #561650 #87227E #B82EAC #D350C7

Accessibility & contrast

On white

8.20
#87227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#87227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87227E
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87227E#FFFFFF#000000##FFFFFF
##87227E1.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4681
Deuteranopia (green-blind)
#42547C
Tritanopia (blue-blind)
#8D2D4E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #87227e;
/* rgb */ color: rgb(135, 34, 126);
/* oklch */ color: oklch(45.0% 0.170 331.9);
Tailwind
colors: {
  custom: {
    50: '#ad68a4',
    500: '#87227e',
    950: '#000000',
  },
}
SCSS
$custom: #87227e;
$custom-light: #ad68a4;
$custom-dark: #000000;
JSON
{
  "hex": "#87227e",
  "rgb": {
    "r": 135,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 305.347,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44981,
    "c": 0.17041,
    "h": 331.9
  },
  "luminance": 0.07801
}

Semantic roles & 50–950 ramp

primary
#87227E
secondary
#4EB758
accent
#E35345
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #87227E

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

Preview Lab → · Contrast checker → · Palette generator →

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