#87237C#87237C

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

Color values

HEX#87237C
RGBrgb(135, 35, 124)
HSLhsl(307, 59%, 33%)
HSVhsv(307, 74%, 53%)
CMYKcmyk(0%, 74.1%, 8.1%, 47.1%)
CIE-LABlab(33.58, 51.78, -27.86)
CIE-LCHlch(33.58, 58.80, 331.71°)
OKLaboklab(44.96% 0.1493 -0.0765)
OKLCHoklch(44.96% 0.168 332.9)
XYZxyz(14.2309, 7.8094, 19.8227)
Luminance0.0781 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87237C #23872E
analogous
#602387 #87237C #87234A
triadic
#87237C #7C8723 #237C87
tetradic
#87237C #876023 #23872E #234A87
square
#87237C #876023 #23872E #234A87
split-complementary
#87237C #4A8723 #238760
monochromatic
#260A23 #56164F #87237C #B830A9 #D252C4

Accessibility & contrast

On white

8.20
#87237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#87237C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87237C
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87237C#FFFFFF#000000##FFFFFF
##87237C1.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)
#1E467E
Deuteranopia (green-blind)
#44547A
Tritanopia (blue-blind)
#8D2D4D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #87237c;
/* rgb */ color: rgb(135, 35, 124);
/* oklch */ color: oklch(45.0% 0.168 332.9);
Tailwind
colors: {
  custom: {
    50: '#ad68a2',
    500: '#87237c',
    950: '#000000',
  },
}
SCSS
$custom: #87237c;
$custom-light: #ad68a2;
$custom-dark: #000000;
JSON
{
  "hex": "#87237c",
  "rgb": {
    "r": 135,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 306.6,
    "s": 58.824,
    "l": 33.333
  },
  "oklch": {
    "l": 0.44957,
    "c": 0.16771,
    "h": 332.9
  },
  "luminance": 0.07808
}

Semantic roles & 50–950 ramp

primary
#87237C
secondary
#50B65B
accent
#E25746
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #87237C

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

Preview Lab → · Contrast checker → · Palette generator →

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