#87237D#87237D

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

Color values

HEX#87237D
RGBrgb(135, 35, 125)
HSLhsl(306, 59%, 33%)
HSVhsv(306, 74%, 53%)
CMYKcmyk(0%, 74.1%, 7.4%, 47.1%)
CIE-LABlab(33.64, 51.95, -28.41)
CIE-LCHlch(33.64, 59.21, 331.33°)
OKLaboklab(45.01% 0.1493 -0.078)
OKLCHoklch(45.01% 0.168 332.4)
XYZxyz(14.2944, 7.8348, 20.1575)
Luminance0.0783 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87237D #23872D
analogous
#5F2387 #87237D #87234B
triadic
#87237D #7D8723 #237D87
tetradic
#87237D #875F23 #23872D #234B87
square
#87237D #875F23 #23872D #234B87
split-complementary
#87237D #4B8723 #23875F
monochromatic
#260A23 #561650 #87237D #B830AA #D252C5

Accessibility & contrast

On white

8.18
#87237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#87237D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87237D
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87237D#FFFFFF#000000##FFFFFF
##87237D1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D467F
Deuteranopia (green-blind)
#43547B
Tritanopia (blue-blind)
#8D2E4D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #87237d;
/* rgb */ color: rgb(135, 35, 125);
/* oklch */ color: oklch(45.0% 0.168 332.4);
Tailwind
colors: {
  custom: {
    50: '#ad68a3',
    500: '#87237d',
    950: '#000000',
  },
}
SCSS
$custom: #87237d;
$custom-light: #ad68a3;
$custom-dark: #000000;
JSON
{
  "hex": "#87237d",
  "rgb": {
    "r": 135,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 306,
    "s": 58.824,
    "l": 33.333
  },
  "oklch": {
    "l": 0.45013,
    "c": 0.16848,
    "h": 332.4
  },
  "luminance": 0.07834
}

Semantic roles & 50–950 ramp

primary
#87237D
secondary
#50B65A
accent
#E25546
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #87237D

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

Preview Lab → · Contrast checker → · Palette generator →

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