#87338F#87338F

#87338F is a mid, vivid purple. Relative luminance 0.095; OKLCH L 47.7% C 0.163 H 324.1°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#87338F
RGBrgb(135, 51, 143)
HSLhsl(295, 47%, 38%)
HSVhsv(295, 64%, 56%)
CMYKcmyk(5.6%, 64.3%, 0%, 43.9%)
CIE-LABlab(36.93, 48.67, -34.33)
CIE-LCHlch(36.93, 59.56, 324.80°)
OKLaboklab(47.72% 0.1319 -0.0953)
OKLCHoklch(47.72% 0.163 324.1)
XYZxyz(16.1330, 9.5026, 26.9657)
Luminance0.0950 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87338F #3B8F33
analogous
#59338F #87338F #8F3369
triadic
#87338F #8F8733 #338F87
tetradic
#87338F #8F5933 #3B8F33 #33698F
square
#87338F #8F5933 #3B8F33 #33698F
split-complementary
#87338F #698F33 #338F59
monochromatic
#321335 #5C2362 #87338F #B243BC #C470CC

Accessibility & contrast

On white

7.24
#87338F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#87338F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87338F
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87338F#FFFFFF#000000##FFFFFF
##87338F1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215092
Deuteranopia (green-blind)
#425A8D
Tritanopia (blue-blind)
#8A415C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #87338f;
/* rgb */ color: rgb(135, 51, 143);
/* oklch */ color: oklch(47.7% 0.163 324.1);
Tailwind
colors: {
  custom: {
    50: '#ad71b0',
    500: '#87338f',
    950: '#000000',
  },
}
SCSS
$custom: #87338f;
$custom-light: #ad71b0;
$custom-dark: #000000;
JSON
{
  "hex": "#87338f",
  "rgb": {
    "r": 135,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 294.783,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.47716,
    "c": 0.16271,
    "h": 324.1
  },
  "luminance": 0.09502
}

Semantic roles & 50–950 ramp

primary
#87338F
secondary
#70B46A
accent
#D7515C
background
#FAF7FA
surface
#F5EDF5
border
#CFC8CF
text
#110810
muted
#807B7F

Preview Lab

Preview with #87338F

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

Preview Lab → · Contrast checker → · Palette generator →

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