#87298B#87298B

#87298B is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.4% C 0.173 H 326.2°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#87298B
RGBrgb(135, 41, 139)
HSLhsl(298, 54%, 35%)
HSVhsv(298, 71%, 55%)
CMYKcmyk(2.9%, 70.5%, 0%, 45.5%)
CIE-LABlab(35.21, 52.13, -34.62)
CIE-LCHlch(35.21, 62.58, 326.41°)
OKLaboklab(46.4% 0.1434 -0.0961)
OKLCHoklch(46.4% 0.173 326.2)
XYZxyz(15.4445, 8.6019, 25.2679)
Luminance0.0860 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87298B #2D8B29
analogous
#56298B #87298B #8B295E
triadic
#87298B #8B8729 #298B87
tetradic
#87298B #8B5629 #2D8B29 #295E8B
square
#87298B #8B5629 #2D8B29 #295E8B
split-complementary
#87298B #5E8B29 #298B56
monochromatic
#2B0D2C #591B5C #87298B #B537BA #CB5FD0

Accessibility & contrast

On white

7.72
#87298B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#87298B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87298B
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87298B#FFFFFF#000000##FFFFFF
##87298B1.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154B8E
Deuteranopia (green-blind)
#3F5789
Tritanopia (blue-blind)
#8B3857
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #87298b;
/* rgb */ color: rgb(135, 41, 139);
/* oklch */ color: oklch(46.4% 0.173 326.2);
Tailwind
colors: {
  custom: {
    50: '#ad6cad',
    500: '#87298b',
    950: '#000000',
  },
}
SCSS
$custom: #87298b;
$custom-light: #ad6cad;
$custom-dark: #000000;
JSON
{
  "hex": "#87298b",
  "rgb": {
    "r": 135,
    "g": 41,
    "b": 139
  },
  "hsl": {
    "h": 297.551,
    "s": 54.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.46395,
    "c": 0.17263,
    "h": 326.2
  },
  "luminance": 0.08601
}

Semantic roles & 50–950 ramp

primary
#87298B
secondary
#5EB55B
accent
#DE4A50
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #87298B

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

Preview Lab → · Contrast checker → · Palette generator →

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