#87227B#87227B

#87227B is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.8% C 0.168 H 333.3°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#87227B
RGBrgb(135, 34, 123)
HSLhsl(307, 60%, 33%)
HSVhsv(307, 75%, 53%)
CMYKcmyk(0%, 74.8%, 8.9%, 47.1%)
CIE-LABlab(33.41, 51.97, -27.52)
CIE-LCHlch(33.41, 58.81, 332.10°)
OKLaboklab(44.81% 0.1502 -0.0755)
OKLCHoklch(44.81% 0.168 333.3)
XYZxyz(14.1389, 7.7262, 19.4817)
Luminance0.0772 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87227B #22872E
analogous
#602287 #87227B #872248
triadic
#87227B #7B8722 #227B87
tetradic
#87227B #876022 #22872E #224887
square
#87227B #876022 #22872E #224887
split-complementary
#87227B #488722 #228760
monochromatic
#250922 #56164E #87227B #B82EA8 #D350C3

Accessibility & contrast

On white

8.25
#87227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#87227B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87227B
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87227B#FFFFFF#000000##FFFFFF
##87227B1.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E457D
Deuteranopia (green-blind)
#445479
Tritanopia (blue-blind)
#8D2C4C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #87227b;
/* rgb */ color: rgb(135, 34, 123);
/* oklch */ color: oklch(44.8% 0.168 333.3);
Tailwind
colors: {
  custom: {
    50: '#ad68a1',
    500: '#87227b',
    950: '#000000',
  },
}
SCSS
$custom: #87227b;
$custom-light: #ad68a1;
$custom-dark: #000000;
JSON
{
  "hex": "#87227b",
  "rgb": {
    "r": 135,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 307.129,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44812,
    "c": 0.16811,
    "h": 333.3
  },
  "luminance": 0.07725
}

Semantic roles & 50–950 ramp

primary
#87227B
secondary
#4EB75B
accent
#E35845
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #87227B

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

Preview Lab → · Contrast checker → · Palette generator →

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