#87237F#87237F

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

Color values

HEX#87237F
RGBrgb(135, 35, 127)
HSLhsl(305, 59%, 33%)
HSVhsv(305, 74%, 53%)
CMYKcmyk(0%, 74.1%, 5.9%, 47.1%)
CIE-LABlab(33.75, 52.28, -29.49)
CIE-LCHlch(33.75, 60.02, 330.57°)
OKLaboklab(45.13% 0.1494 -0.0811)
OKLCHoklch(45.13% 0.17 331.5)
XYZxyz(14.4235, 7.8864, 20.8371)
Luminance0.0789 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87237F #23872B
analogous
#5D2387 #87237F #87234D
triadic
#87237F #7F8723 #237F87
tetradic
#87237F #875D23 #23872B #234D87
square
#87237F #875D23 #23872B #234D87
split-complementary
#87237F #4D8723 #23875D
monochromatic
#260A24 #561651 #87237F #B830AD #D252C8

Accessibility & contrast

On white

8.15
#87237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#87237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87237F
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87237F#FFFFFF#000000##FFFFFF
##87237F1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4682
Deuteranopia (green-blind)
#42547D
Tritanopia (blue-blind)
#8D2F4F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #87237f;
/* rgb */ color: rgb(135, 35, 127);
/* oklch */ color: oklch(45.1% 0.170 331.5);
Tailwind
colors: {
  custom: {
    50: '#ad69a4',
    500: '#87237f',
    950: '#000000',
  },
}
SCSS
$custom: #87237f;
$custom-light: #ad69a4;
$custom-dark: #000000;
JSON
{
  "hex": "#87237f",
  "rgb": {
    "r": 135,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 304.8,
    "s": 58.824,
    "l": 33.333
  },
  "oklch": {
    "l": 0.45126,
    "c": 0.17004,
    "h": 331.5
  },
  "luminance": 0.07885
}

Semantic roles & 50–950 ramp

primary
#87237F
secondary
#50B658
accent
#E25246
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #87237F

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

Preview Lab → · Contrast checker → · Palette generator →

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