#87238B#87238B

#87238B is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.8% C 0.180 H 326.3°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#87238B
RGBrgb(135, 35, 139)
HSLhsl(298, 60%, 34%)
HSVhsv(298, 75%, 55%)
CMYKcmyk(2.9%, 74.8%, 0%, 45.5%)
CIE-LABlab(34.43, 54.33, -35.85)
CIE-LCHlch(34.43, 65.09, 326.58°)
OKLaboklab(45.84% 0.1496 -0.0996)
OKLCHoklch(45.84% 0.18 326.3)
XYZxyz(15.2526, 8.2181, 25.2040)
Luminance0.0822 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87238B #278B23
analogous
#53238B #87238B #8B235B
triadic
#87238B #8B8723 #238B87
tetradic
#87238B #8B5323 #278B23 #235B8B
square
#87238B #8B5323 #278B23 #235B8B
split-complementary
#87238B #5B8B23 #238B53
monochromatic
#280A29 #58175A #87238B #B62FBC #CF54D4

Accessibility & contrast

On white

7.94
#87238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#87238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87238B
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87238B#FFFFFF#000000##FFFFFF
##87238B1.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06498E
Deuteranopia (green-blind)
#3C5588
Tritanopia (blue-blind)
#8B3455
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #87238b;
/* rgb */ color: rgb(135, 35, 139);
/* oklch */ color: oklch(45.8% 0.180 326.3);
Tailwind
colors: {
  custom: {
    50: '#ad69ad',
    500: '#87238b',
    950: '#000000',
  },
}
SCSS
$custom: #87238b;
$custom-light: #ad69ad;
$custom-dark: #000000;
JSON
{
  "hex": "#87238b",
  "rgb": {
    "r": 135,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 297.692,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.45841,
    "c": 0.1797,
    "h": 326.3
  },
  "luminance": 0.08217
}

Semantic roles & 50–950 ramp

primary
#87238B
secondary
#56B852
accent
#E3454B
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #87238B

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

Preview Lab → · Contrast checker → · Palette generator →

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