#87238D#87238D

#87238D is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.0% C 0.181 H 325.5°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#87238D
RGBrgb(135, 35, 141)
HSLhsl(297, 60%, 35%)
HSVhsv(297, 75%, 55%)
CMYKcmyk(4.3%, 75.2%, 0%, 44.7%)
CIE-LABlab(34.55, 54.68, -36.89)
CIE-LCHlch(34.55, 65.96, 326.00°)
OKLaboklab(45.97% 0.1495 -0.1026)
OKLCHoklch(45.97% 0.181 325.5)
XYZxyz(15.4001, 8.2771, 25.9806)
Luminance0.0828 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87238D #298D23
analogous
#52238D #87238D #8D235E
triadic
#87238D #8D8723 #238D87
tetradic
#87238D #8D5223 #298D23 #235E8D
square
#87238D #8D5223 #298D23 #235E8D
split-complementary
#87238D #5E8D23 #238D52
monochromatic
#290B2B #58175C #87238D #B62FBE #CE55D5

Accessibility & contrast

On white

7.91
#87238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#87238D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87238D
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87238D#FFFFFF#000000##FFFFFF
##87238D1.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004990
Deuteranopia (green-blind)
#3A558A
Tritanopia (blue-blind)
#8A3556
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #87238d;
/* rgb */ color: rgb(135, 35, 141);
/* oklch */ color: oklch(46.0% 0.181 325.5);
Tailwind
colors: {
  custom: {
    50: '#ad69af',
    500: '#87238d',
    950: '#000000',
  },
}
SCSS
$custom: #87238d;
$custom-light: #ad69af;
$custom-dark: #000000;
JSON
{
  "hex": "#87238d",
  "rgb": {
    "r": 135,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 296.604,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.45966,
    "c": 0.18135,
    "h": 325.5
  },
  "luminance": 0.08276
}

Semantic roles & 50–950 ramp

primary
#87238D
secondary
#59B953
accent
#E3444D
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #87238D

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

Preview Lab → · Contrast checker → · Palette generator →

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