#87257E#87257E

#87257E is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.3% C 0.167 H 332.0°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#87257E
RGBrgb(135, 37, 126)
HSLhsl(306, 57%, 34%)
HSVhsv(306, 73%, 53%)
CMYKcmyk(0%, 72.6%, 6.7%, 47.1%)
CIE-LABlab(33.94, 51.39, -28.55)
CIE-LCHlch(33.94, 58.79, 330.95°)
OKLaboklab(45.25% 0.1473 -0.0785)
OKLCHoklch(45.25% 0.167 332)
XYZxyz(14.4192, 7.9815, 20.5158)
Luminance0.0798 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87257E #25872E
analogous
#5F2587 #87257E #87254D
triadic
#87257E #7E8725 #257E87
tetradic
#87257E #875F25 #25872E #254D87
square
#87257E #875F25 #25872E #254D87
split-complementary
#87257E #4D8725 #25875F
monochromatic
#270B24 #571851 #87257E #B732AB #D156C5

Accessibility & contrast

On white

8.09
#87257E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#87257E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87257E
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87257E#FFFFFF#000000##FFFFFF
##87257E1.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4780
Deuteranopia (green-blind)
#44557C
Tritanopia (blue-blind)
#8D304F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #87257e;
/* rgb */ color: rgb(135, 37, 126);
/* oklch */ color: oklch(45.3% 0.167 332.0);
Tailwind
colors: {
  custom: {
    50: '#ad69a4',
    500: '#87257e',
    950: '#000000',
  },
}
SCSS
$custom: #87257e;
$custom-light: #ad69a4;
$custom-dark: #000000;
JSON
{
  "hex": "#87257e",
  "rgb": {
    "r": 135,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 305.51,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45252,
    "c": 0.16688,
    "h": 332
  },
  "luminance": 0.0798
}

Semantic roles & 50–950 ramp

primary
#87257E
secondary
#53B55C
accent
#E05648
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #87257E

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

Preview Lab → · Contrast checker → · Palette generator →

#87257E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva