#87237B#87237B

#87237B is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.9% C 0.167 H 333.3°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#87237B
RGBrgb(135, 35, 123)
HSLhsl(307, 59%, 33%)
HSVhsv(307, 74%, 53%)
CMYKcmyk(0%, 74.1%, 8.9%, 47.1%)
CIE-LABlab(33.53, 51.62, -27.32)
CIE-LCHlch(33.53, 58.41, 332.11°)
OKLaboklab(44.9% 0.1492 -0.0749)
OKLCHoklch(44.9% 0.167 333.3)
XYZxyz(14.1679, 7.7842, 19.4914)
Luminance0.0778 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87237B #23872F
analogous
#612387 #87237B #872349
triadic
#87237B #7B8723 #237B87
tetradic
#87237B #876123 #23872F #234987
square
#87237B #876123 #23872F #234987
split-complementary
#87237B #498723 #238761
monochromatic
#260A22 #56164F #87237B #B830A7 #D252C3

Accessibility & contrast

On white

8.21
#87237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #87237B
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87237B#FFFFFF#000000##FFFFFF
##87237B1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F467D
Deuteranopia (green-blind)
#445479
Tritanopia (blue-blind)
#8D2D4C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #87237b;
/* rgb */ color: rgb(135, 35, 123);
/* oklch */ color: oklch(44.9% 0.167 333.3);
Tailwind
colors: {
  custom: {
    50: '#ad68a1',
    500: '#87237b',
    950: '#000000',
  },
}
SCSS
$custom: #87237b;
$custom-light: #ad68a1;
$custom-dark: #000000;
JSON
{
  "hex": "#87237b",
  "rgb": {
    "r": 135,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 307.2,
    "s": 58.824,
    "l": 33.333
  },
  "oklch": {
    "l": 0.44901,
    "c": 0.16694,
    "h": 333.3
  },
  "luminance": 0.07783
}

Semantic roles & 50–950 ramp

primary
#87237B
secondary
#50B65C
accent
#E25946
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #87237B

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

Preview Lab → · Contrast checker → · Palette generator →

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