#87257F#87257F

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

Color values

HEX#87257F
RGBrgb(135, 37, 127)
HSLhsl(305, 57%, 34%)
HSVhsv(305, 73%, 53%)
CMYKcmyk(0%, 72.6%, 5.9%, 47.1%)
CIE-LABlab(34.00, 51.56, -29.09)
CIE-LCHlch(34.00, 59.20, 330.57°)
OKLaboklab(45.31% 0.1474 -0.08)
OKLCHoklch(45.31% 0.168 331.5)
XYZxyz(14.4840, 8.0075, 20.8573)
Luminance0.0801 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87257F #25872D
analogous
#5E2587 #87257F #87254E
triadic
#87257F #7F8725 #257F87
tetradic
#87257F #875E25 #25872D #254E87
square
#87257F #875E25 #25872D #254E87
split-complementary
#87257F #4E8725 #25875E
monochromatic
#270B25 #571852 #87257F #B732AC #D156C7

Accessibility & contrast

On white

8.07
#87257F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #87257F
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87257F#FFFFFF#000000##FFFFFF
##87257F1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4782
Deuteranopia (green-blind)
#43557D
Tritanopia (blue-blind)
#8D304F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #87257f;
/* rgb */ color: rgb(135, 37, 127);
/* oklch */ color: oklch(45.3% 0.168 331.5);
Tailwind
colors: {
  custom: {
    50: '#ad69a4',
    500: '#87257f',
    950: '#000000',
  },
}
SCSS
$custom: #87257f;
$custom-light: #ad69a4;
$custom-dark: #000000;
JSON
{
  "hex": "#87257f",
  "rgb": {
    "r": 135,
    "g": 37,
    "b": 127
  },
  "hsl": {
    "h": 304.898,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45309,
    "c": 0.16767,
    "h": 331.5
  },
  "luminance": 0.08006
}

Semantic roles & 50–950 ramp

primary
#87257F
secondary
#53B55B
accent
#E05448
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #87257F

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

Preview Lab → · Contrast checker → · Palette generator →

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