#87338A#87338A

#87338A is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.4% C 0.158 H 326.3°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#87338A
RGBrgb(135, 51, 138)
HSLhsl(298, 46%, 37%)
HSVhsv(298, 63%, 54%)
CMYKcmyk(2.2%, 63%, 0%, 45.9%)
CIE-LABlab(36.66, 47.73, -31.70)
CIE-LCHlch(36.66, 57.30, 326.41°)
OKLaboklab(47.43% 0.1316 -0.0877)
OKLCHoklch(47.43% 0.158 326.3)
XYZxyz(15.7626, 9.3545, 25.0152)
Luminance0.0935 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87338A #368A33
analogous
#5C338A #87338A #8A3362
triadic
#87338A #8A8733 #338A87
tetradic
#87338A #8A5C33 #368A33 #33628A
square
#87338A #8A5C33 #368A33 #33628A
split-complementary
#87338A #628A33 #338A5C
monochromatic
#301231 #5B225D #87338A #B344B7 #C66EC9

Accessibility & contrast

On white

7.32
#87338A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#87338A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87338A
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87338A#FFFFFF#000000##FFFFFF
##87338A1.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264F8D
Deuteranopia (green-blind)
#455A88
Tritanopia (blue-blind)
#8B3F5A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #87338a;
/* rgb */ color: rgb(135, 51, 138);
/* oklch */ color: oklch(47.4% 0.158 326.3);
Tailwind
colors: {
  custom: {
    50: '#ad71ac',
    500: '#87338a',
    950: '#000000',
  },
}
SCSS
$custom: #87338a;
$custom-light: #ad71ac;
$custom-dark: #000000;
JSON
{
  "hex": "#87338a",
  "rgb": {
    "r": 135,
    "g": 51,
    "b": 138
  },
  "hsl": {
    "h": 297.931,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.47426,
    "c": 0.15815,
    "h": 326.3
  },
  "luminance": 0.09354
}

Semantic roles & 50–950 ramp

primary
#87338A
secondary
#6AB167
accent
#D65257
background
#FAF7FA
surface
#F5EDF4
border
#CFC8CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #87338A

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

Preview Lab → · Contrast checker → · Palette generator →

#87338A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva