#87237E#87237E

#87237E is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.1% C 0.169 H 332.0°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#87237E
RGBrgb(135, 35, 126)
HSLhsl(305, 59%, 33%)
HSVhsv(305, 74%, 53%)
CMYKcmyk(0%, 74.1%, 6.7%, 47.1%)
CIE-LABlab(33.69, 52.11, -28.95)
CIE-LCHlch(33.69, 59.61, 330.95°)
OKLaboklab(45.07% 0.1494 -0.0796)
OKLCHoklch(45.07% 0.169 332)
XYZxyz(14.3586, 7.8605, 20.4956)
Luminance0.0786 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87237E #23872C
analogous
#5E2387 #87237E #87234C
triadic
#87237E #7E8723 #237E87
tetradic
#87237E #875E23 #23872C #234C87
square
#87237E #875E23 #23872C #234C87
split-complementary
#87237E #4C8723 #23875E
monochromatic
#260A23 #561651 #87237E #B830AB #D252C7

Accessibility & contrast

On white

8.17
#87237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #87237E
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87237E#FFFFFF#000000##FFFFFF
##87237E1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4681
Deuteranopia (green-blind)
#43547C
Tritanopia (blue-blind)
#8D2E4E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #87237e;
/* rgb */ color: rgb(135, 35, 126);
/* oklch */ color: oklch(45.1% 0.169 332.0);
Tailwind
colors: {
  custom: {
    50: '#ad69a4',
    500: '#87237e',
    950: '#000000',
  },
}
SCSS
$custom: #87237e;
$custom-light: #ad69a4;
$custom-dark: #000000;
JSON
{
  "hex": "#87237e",
  "rgb": {
    "r": 135,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 305.4,
    "s": 58.824,
    "l": 33.333
  },
  "oklch": {
    "l": 0.45069,
    "c": 0.16926,
    "h": 332
  },
  "luminance": 0.07859
}

Semantic roles & 50–950 ramp

primary
#87237E
secondary
#50B659
accent
#E25446
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #87237E

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

Preview Lab → · Contrast checker → · Palette generator →

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