#87398D#87398D

#87398D is a mid, vivid purple. Relative luminance 0.100; OKLCH L 48.3% C 0.152 H 324.8°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#87398D
RGBrgb(135, 57, 141)
HSLhsl(296, 42%, 39%)
HSVhsv(296, 60%, 55%)
CMYKcmyk(4.3%, 59.6%, 0%, 44.7%)
CIE-LABlab(37.84, 45.49, -31.67)
CIE-LCHlch(37.84, 55.43, 325.15°)
OKLaboklab(48.34% 0.124 -0.0876)
OKLCHoklch(48.34% 0.152 324.8)
XYZxyz(16.2621, 10.0011, 26.2680)
Luminance0.1000 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87398D #3F8D39
analogous
#5D398D #87398D #8D3969
triadic
#87398D #8D8739 #398D87
tetradic
#87398D #8D5D39 #3F8D39 #39698D
square
#87398D #8D5D39 #3F8D39 #39698D
split-complementary
#87398D #698D39 #398D5D
monochromatic
#341636 #5D2761 #87398D #AF4CB7 #C378C8

Accessibility & contrast

On white

7.00
#87398D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#87398D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #87398D
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87398D#FFFFFF#000000##FFFFFF
##87398D1.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5390
Deuteranopia (green-blind)
#475C8B
Tritanopia (blue-blind)
#8A445D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #87398d;
/* rgb */ color: rgb(135, 57, 141);
/* oklch */ color: oklch(48.3% 0.152 324.8);
Tailwind
colors: {
  custom: {
    50: '#ac74af',
    500: '#87398d',
    950: '#000000',
  },
}
SCSS
$custom: #87398d;
$custom-light: #ac74af;
$custom-dark: #000000;
JSON
{
  "hex": "#87398d",
  "rgb": {
    "r": 135,
    "g": 57,
    "b": 141
  },
  "hsl": {
    "h": 295.714,
    "s": 42.424,
    "l": 38.824
  },
  "oklch": {
    "l": 0.48342,
    "c": 0.15185,
    "h": 324.8
  },
  "luminance": 0.1
}

Semantic roles & 50–950 ramp

primary
#87398D
secondary
#75B270
accent
#D2565E
background
#FAF7FA
surface
#F4EDF4
border
#CEC8CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #87398D

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

Preview Lab → · Contrast checker → · Palette generator →

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