#87267A#87267A

#87267A is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.1% C 0.163 H 333.9°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#87267A
RGBrgb(135, 38, 122)
HSLhsl(308, 56%, 34%)
HSVhsv(308, 72%, 53%)
CMYKcmyk(0%, 71.9%, 9.6%, 47.1%)
CIE-LABlab(33.86, 50.36, -26.17)
CIE-LCHlch(33.86, 56.75, 332.54°)
OKLaboklab(45.13% 0.1459 -0.0716)
OKLCHoklch(45.13% 0.163 333.9)
XYZxyz(14.1977, 7.9435, 19.1941)
Luminance0.0794 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87267A #268733
analogous
#642687 #87267A #87264A
triadic
#87267A #7A8726 #267A87
tetradic
#87267A #876426 #268733 #264A87
square
#87267A #876426 #268733 #264A87
split-complementary
#87267A #4A8726 #268764
monochromatic
#270B24 #57194F #87267A #B733A5 #D058C0

Accessibility & contrast

On white

8.11
#87267A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#87267A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87267A
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87267A#FFFFFF#000000##FFFFFF
##87267A1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24477C
Deuteranopia (green-blind)
#465578
Tritanopia (blue-blind)
#8D2E4D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #87267a;
/* rgb */ color: rgb(135, 38, 122);
/* oklch */ color: oklch(45.1% 0.163 333.9);
Tailwind
colors: {
  custom: {
    50: '#ad6aa1',
    500: '#87267a',
    950: '#000000',
  },
}
SCSS
$custom: #87267a;
$custom-light: #ad6aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#87267a",
  "rgb": {
    "r": 135,
    "g": 38,
    "b": 122
  },
  "hsl": {
    "h": 308.041,
    "s": 56.069,
    "l": 33.922
  },
  "oklch": {
    "l": 0.45126,
    "c": 0.16252,
    "h": 333.9
  },
  "luminance": 0.07942
}

Semantic roles & 50–950 ramp

primary
#87267A
secondary
#54B561
accent
#DF5D48
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #87267A

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

Preview Lab → · Contrast checker → · Palette generator →

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