#87238A#87238A

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

Color values

HEX#87238A
RGBrgb(135, 35, 138)
HSLhsl(298, 60%, 34%)
HSVhsv(298, 75%, 54%)
CMYKcmyk(2.2%, 74.6%, 0%, 45.9%)
CIE-LABlab(34.37, 54.15, -35.32)
CIE-LCHlch(34.37, 64.65, 326.88°)
OKLaboklab(45.78% 0.1496 -0.0981)
OKLCHoklch(45.78% 0.179 326.8)
XYZxyz(15.1799, 8.1890, 24.8209)
Luminance0.0819 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87238A #268A23
analogous
#54238A #87238A #8A235A
triadic
#87238A #8A8723 #238A87
tetradic
#87238A #8A5423 #268A23 #235A8A
square
#87238A #8A5423 #268A23 #235A8A
split-complementary
#87238A #5A8A23 #238A54
monochromatic
#270A28 #571759 #87238A #B72FBB #D054D4

Accessibility & contrast

On white

7.96
#87238A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #87238A
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87238A#FFFFFF#000000##FFFFFF
##87238A1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08498D
Deuteranopia (green-blind)
#3C5587
Tritanopia (blue-blind)
#8B3455
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #87238a;
/* rgb */ color: rgb(135, 35, 138);
/* oklch */ color: oklch(45.8% 0.179 326.8);
Tailwind
colors: {
  custom: {
    50: '#ad69ac',
    500: '#87238a',
    950: '#000000',
  },
}
SCSS
$custom: #87238a;
$custom-light: #ad69ac;
$custom-dark: #000000;
JSON
{
  "hex": "#87238a",
  "rgb": {
    "r": 135,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 298.252,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.4578,
    "c": 0.17887,
    "h": 326.8
  },
  "luminance": 0.08188
}

Semantic roles & 50–950 ramp

primary
#87238A
secondary
#54B751
accent
#E3454A
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #87238A

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

Preview Lab → · Contrast checker → · Palette generator →

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