#87407C#87407C

#87407C is a mid, vivid purple. Relative luminance 0.103; OKLCH L 48.4% C 0.125 H 333.5°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#87407C
RGBrgb(135, 64, 124)
HSLhsl(309, 36%, 39%)
HSVhsv(309, 53%, 53%)
CMYKcmyk(0%, 52.6%, 8.1%, 47.1%)
CIE-LABlab(38.33, 38.77, -20.46)
CIE-LCHlch(38.33, 43.84, 332.18°)
OKLaboklab(48.43% 0.1114 -0.0556)
OKLCHoklch(48.43% 0.125 333.5)
XYZxyz(15.4631, 10.2739, 20.2335)
Luminance0.1027 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87407C #40874B
analogous
#6F4087 #87407C #874059
triadic
#87407C #7C8740 #407C87
tetradic
#87407C #876F40 #40874B #405987
square
#87407C #876F40 #40874B #405987
split-complementary
#87407C #598740 #40876F
monochromatic
#341930 #5D2C56 #87407C #AF56A1 #C27FB8

Accessibility & contrast

On white

6.87
#87407C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#87407C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #87407C
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87407C#FFFFFF#000000##FFFFFF
##87407C1.006.873.056.87
#FFFFFF6.871.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F547E
Deuteranopia (green-blind)
#535E7A
Tritanopia (blue-blind)
#8C4458
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #87407c;
/* rgb */ color: rgb(135, 64, 124);
/* oklch */ color: oklch(48.4% 0.125 333.5);
Tailwind
colors: {
  custom: {
    50: '#ac78a2',
    500: '#87407c',
    950: '#000000',
  },
}
SCSS
$custom: #87407c;
$custom-light: #ac78a2;
$custom-dark: #000000;
JSON
{
  "hex": "#87407c",
  "rgb": {
    "r": 135,
    "g": 64,
    "b": 124
  },
  "hsl": {
    "h": 309.296,
    "s": 35.678,
    "l": 39.02
  },
  "oklch": {
    "l": 0.48427,
    "c": 0.12451,
    "h": 333.5
  },
  "luminance": 0.10273
}

Semantic roles & 50–950 ramp

primary
#87407C
secondary
#76AD7F
accent
#CC6D5C
background
#FAF7F9
surface
#F4EDF2
border
#CEC8CC
text
#10090F
muted
#7F7B7E

Preview Lab

Preview with #87407C

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

Preview Lab → · Contrast checker → · Palette generator →

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