#87238C#87238C

#87238C is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.9% C 0.181 H 325.9°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#87238C
RGBrgb(135, 35, 140)
HSLhsl(297, 60%, 34%)
HSVhsv(297, 75%, 55%)
CMYKcmyk(3.6%, 75%, 0%, 45.1%)
CIE-LABlab(34.49, 54.50, -36.37)
CIE-LCHlch(34.49, 65.52, 326.29°)
OKLaboklab(45.9% 0.1495 -0.1011)
OKLCHoklch(45.9% 0.181 325.9)
XYZxyz(15.3260, 8.2474, 25.5905)
Luminance0.0825 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87238C #288C23
analogous
#53238C #87238C #8C235D
triadic
#87238C #8C8723 #238C87
tetradic
#87238C #8C5323 #288C23 #235D8C
square
#87238C #8C5323 #288C23 #235D8C
split-complementary
#87238C #5D8C23 #238C53
monochromatic
#290B2A #58175B #87238C #B62FBD #CE55D4

Accessibility & contrast

On white

7.93
#87238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#87238C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87238C
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87238C#FFFFFF#000000##FFFFFF
##87238C1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03498F
Deuteranopia (green-blind)
#3B5589
Tritanopia (blue-blind)
#8A3556
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #87238c;
/* rgb */ color: rgb(135, 35, 140);
/* oklch */ color: oklch(45.9% 0.181 325.9);
Tailwind
colors: {
  custom: {
    50: '#ad69ae',
    500: '#87238c',
    950: '#000000',
  },
}
SCSS
$custom: #87238c;
$custom-light: #ad69ae;
$custom-dark: #000000;
JSON
{
  "hex": "#87238c",
  "rgb": {
    "r": 135,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 297.143,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45903,
    "c": 0.18051,
    "h": 325.9
  },
  "luminance": 0.08246
}

Semantic roles & 50–950 ramp

primary
#87238C
secondary
#57B852
accent
#E3454C
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #87238C

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

Preview Lab → · Contrast checker → · Palette generator →

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