#87257D#87257D

#87257D is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.2% C 0.166 H 332.4°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#87257D
RGBrgb(135, 37, 125)
HSLhsl(306, 57%, 34%)
HSVhsv(306, 73%, 53%)
CMYKcmyk(0%, 72.6%, 7.4%, 47.1%)
CIE-LABlab(33.89, 51.22, -28.01)
CIE-LCHlch(33.89, 58.38, 331.33°)
OKLaboklab(45.2% 0.1472 -0.0769)
OKLCHoklch(45.2% 0.166 332.4)
XYZxyz(14.3550, 7.9559, 20.1776)
Luminance0.0795 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87257D #25872F
analogous
#602587 #87257D #87254C
triadic
#87257D #7D8725 #257D87
tetradic
#87257D #876025 #25872F #254C87
square
#87257D #876025 #25872F #254C87
split-complementary
#87257D #4C8725 #258760
monochromatic
#270B24 #571851 #87257D #B732A9 #D156C4

Accessibility & contrast

On white

8.10
#87257D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#87257D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87257D
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87257D#FFFFFF#000000##FFFFFF
##87257D1.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20477F
Deuteranopia (green-blind)
#44557B
Tritanopia (blue-blind)
#8D2F4E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #87257d;
/* rgb */ color: rgb(135, 37, 125);
/* oklch */ color: oklch(45.2% 0.166 332.4);
Tailwind
colors: {
  custom: {
    50: '#ad69a3',
    500: '#87257d',
    950: '#000000',
  },
}
SCSS
$custom: #87257d;
$custom-light: #ad69a3;
$custom-dark: #000000;
JSON
{
  "hex": "#87257d",
  "rgb": {
    "r": 135,
    "g": 37,
    "b": 125
  },
  "hsl": {
    "h": 306.122,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45196,
    "c": 0.16609,
    "h": 332.4
  },
  "luminance": 0.07955
}

Semantic roles & 50–950 ramp

primary
#87257D
secondary
#53B55D
accent
#E05748
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #87257D

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

Preview Lab → · Contrast checker → · Palette generator →

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