#87338D#87338D

#87338D is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.6% C 0.161 H 325.0°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#87338D
RGBrgb(135, 51, 141)
HSLhsl(296, 47%, 38%)
HSVhsv(296, 64%, 55%)
CMYKcmyk(4.3%, 63.8%, 0%, 44.7%)
CIE-LABlab(36.82, 48.29, -33.28)
CIE-LCHlch(36.82, 58.65, 325.43°)
OKLaboklab(47.6% 0.1318 -0.0923)
OKLCHoklch(47.6% 0.161 325)
XYZxyz(15.9828, 9.4426, 26.1749)
Luminance0.0944 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87338D #398D33
analogous
#5A338D #87338D #8D3366
triadic
#87338D #8D8733 #338D87
tetradic
#87338D #8D5A33 #398D33 #33668D
square
#87338D #8D5A33 #398D33 #33668D
split-complementary
#87338D #668D33 #338D5A
monochromatic
#311233 #5C2360 #87338D #B243BA #C56FCB

Accessibility & contrast

On white

7.27
#87338D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#87338D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87338D
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87338D#FFFFFF#000000##FFFFFF
##87338D1.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235090
Deuteranopia (green-blind)
#435A8B
Tritanopia (blue-blind)
#8A405B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #87338d;
/* rgb */ color: rgb(135, 51, 141);
/* oklch */ color: oklch(47.6% 0.161 325.0);
Tailwind
colors: {
  custom: {
    50: '#ad71af',
    500: '#87338d',
    950: '#000000',
  },
}
SCSS
$custom: #87338d;
$custom-light: #ad71af;
$custom-dark: #000000;
JSON
{
  "hex": "#87338d",
  "rgb": {
    "r": 135,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 296,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.47598,
    "c": 0.16087,
    "h": 325
  },
  "luminance": 0.09442
}

Semantic roles & 50–950 ramp

primary
#87338D
secondary
#6EB369
accent
#D7515A
background
#FAF7FA
surface
#F5EDF4
border
#CFC8CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #87338D

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

Preview Lab → · Contrast checker → · Palette generator →

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