#87247B#87247B

#87247B is a dark, vivid purple. Relative luminance 0.078; OKLCH L 45.0% C 0.166 H 333.4°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#87247B
RGBrgb(135, 36, 123)
HSLhsl(307, 58%, 34%)
HSVhsv(307, 73%, 53%)
CMYKcmyk(0%, 73.3%, 8.9%, 47.1%)
CIE-LABlab(33.66, 51.26, -27.12)
CIE-LCHlch(33.66, 58.00, 332.12°)
OKLaboklab(44.99% 0.1481 -0.0743)
OKLCHoklch(44.99% 0.166 333.4)
XYZxyz(14.1978, 7.8439, 19.5013)
Luminance0.0784 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87247B #248730
analogous
#612487 #87247B #872449
triadic
#87247B #7B8724 #247B87
tetradic
#87247B #876124 #248730 #244987
square
#87247B #876124 #248730 #244987
split-complementary
#87247B #498724 #248761
monochromatic
#260A23 #57174F #87247B #B731A7 #D154C2

Accessibility & contrast

On white

8.18
#87247B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#87247B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87247B
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87247B#FFFFFF#000000##FFFFFF
##87247B1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21467D
Deuteranopia (green-blind)
#455479
Tritanopia (blue-blind)
#8D2D4D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #87247b;
/* rgb */ color: rgb(135, 36, 123);
/* oklch */ color: oklch(45.0% 0.166 333.4);
Tailwind
colors: {
  custom: {
    50: '#ad69a1',
    500: '#87247b',
    950: '#000000',
  },
}
SCSS
$custom: #87247b;
$custom-light: #ad69a1;
$custom-dark: #000000;
JSON
{
  "hex": "#87247b",
  "rgb": {
    "r": 135,
    "g": 36,
    "b": 123
  },
  "hsl": {
    "h": 307.273,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.44992,
    "c": 0.16575,
    "h": 333.4
  },
  "luminance": 0.07843
}

Semantic roles & 50–950 ramp

primary
#87247B
secondary
#51B55D
accent
#E15947
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #87247B

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

Preview Lab → · Contrast checker → · Palette generator →

#87247B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva