#872487#872487

#872487 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.7% C 0.175 H 328.0°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#872487
RGBrgb(135, 36, 135)
HSLhsl(300, 58%, 34%)
HSVhsv(300, 73%, 53%)
CMYKcmyk(0%, 73.3%, 0%, 47.1%)
CIE-LABlab(34.32, 53.28, -33.55)
CIE-LCHlch(34.32, 62.96, 327.80°)
OKLaboklab(45.68% 0.1486 -0.0929)
OKLCHoklch(45.68% 0.175 328)
XYZxyz(14.9955, 8.1630, 23.7028)
Luminance0.0816 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872487 #248724
analogous
#552487 #872487 #872455
triadic
#872487 #878724 #248787
tetradic
#872487 #875524 #248724 #245587
square
#872487 #875524 #248724 #245587
split-complementary
#872487 #558724 #248755
monochromatic
#260A26 #571757 #872487 #B731B7 #D154D1

Accessibility & contrast

On white

7.98
#872487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#872487 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #872487
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872487#FFFFFF#000000##FFFFFF
##8724871.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12488A
Deuteranopia (green-blind)
#3F5584
Tritanopia (blue-blind)
#8B3353
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #872487;
/* rgb */ color: rgb(135, 36, 135);
/* oklch */ color: oklch(45.7% 0.175 328.0);
Tailwind
colors: {
  custom: {
    50: '#ad69aa',
    500: '#872487',
    950: '#000000',
  },
}
SCSS
$custom: #872487;
$custom-light: #ad69aa;
$custom-dark: #000000;
JSON
{
  "hex": "#872487",
  "rgb": {
    "r": 135,
    "g": 36,
    "b": 135
  },
  "hsl": {
    "h": 300,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.45685,
    "c": 0.17528,
    "h": 328
  },
  "luminance": 0.08162
}

Semantic roles & 50–950 ramp

primary
#872487
secondary
#51B551
accent
#E14747
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #872487

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

Preview Lab → · Contrast checker → · Palette generator →

#872487 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva