#87237A#87237A

#87237A is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.8% C 0.166 H 333.8°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#87237A
RGBrgb(135, 35, 122)
HSLhsl(308, 59%, 33%)
HSVhsv(308, 74%, 53%)
CMYKcmyk(0%, 74.1%, 9.6%, 47.1%)
CIE-LABlab(33.48, 51.46, -26.78)
CIE-LCHlch(33.48, 58.01, 332.51°)
OKLaboklab(44.85% 0.1491 -0.0733)
OKLCHoklch(44.85% 0.166 333.8)
XYZxyz(14.1057, 7.7593, 19.1634)
Luminance0.0776 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87237A #238730
analogous
#622387 #87237A #872348
triadic
#87237A #7A8723 #237A87
tetradic
#87237A #876223 #238730 #234887
square
#87237A #876223 #238730 #234887
split-complementary
#87237A #488723 #238762
monochromatic
#260A22 #56164E #87237A #B830A6 #D252C2

Accessibility & contrast

On white

8.23
#87237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#87237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87237A
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87237A#FFFFFF#000000##FFFFFF
##87237A1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20457C
Deuteranopia (green-blind)
#455478
Tritanopia (blue-blind)
#8D2C4C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #87237a;
/* rgb */ color: rgb(135, 35, 122);
/* oklch */ color: oklch(44.8% 0.166 333.8);
Tailwind
colors: {
  custom: {
    50: '#ad68a1',
    500: '#87237a',
    950: '#000000',
  },
}
SCSS
$custom: #87237a;
$custom-light: #ad68a1;
$custom-dark: #000000;
JSON
{
  "hex": "#87237a",
  "rgb": {
    "r": 135,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 307.8,
    "s": 58.824,
    "l": 33.333
  },
  "oklch": {
    "l": 0.44846,
    "c": 0.16618,
    "h": 333.8
  },
  "luminance": 0.07758
}

Semantic roles & 50–950 ramp

primary
#87237A
secondary
#50B65D
accent
#E25A46
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #87237A

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

Preview Lab → · Contrast checker → · Palette generator →

#87237A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva