#87338E#87338E

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

Color values

HEX#87338E
RGBrgb(135, 51, 142)
HSLhsl(295, 47%, 38%)
HSVhsv(295, 64%, 56%)
CMYKcmyk(4.9%, 64.1%, 0%, 44.3%)
CIE-LABlab(36.88, 48.48, -33.81)
CIE-LCHlch(36.88, 59.11, 325.11°)
OKLaboklab(47.66% 0.1318 -0.0938)
OKLCHoklch(47.66% 0.162 324.6)
XYZxyz(16.0576, 9.4725, 26.5685)
Luminance0.0947 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87338E #3A8E33
analogous
#5A338E #87338E #8E3367
triadic
#87338E #8E8733 #338E87
tetradic
#87338E #8E5A33 #3A8E33 #33678E
square
#87338E #8E5A33 #3A8E33 #33678E
split-complementary
#87338E #678E33 #338E5A
monochromatic
#311334 #5C2361 #87338E #B243BB #C570CC

Accessibility & contrast

On white

7.26
#87338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #87338E
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87338E#FFFFFF#000000##FFFFFF
##87338E1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225091
Deuteranopia (green-blind)
#435A8C
Tritanopia (blue-blind)
#8A405C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #87338e;
/* rgb */ color: rgb(135, 51, 142);
/* oklch */ color: oklch(47.7% 0.162 324.6);
Tailwind
colors: {
  custom: {
    50: '#ad71af',
    500: '#87338e',
    950: '#000000',
  },
}
SCSS
$custom: #87338e;
$custom-light: #ad71af;
$custom-dark: #000000;
JSON
{
  "hex": "#87338e",
  "rgb": {
    "r": 135,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 295.385,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.47657,
    "c": 0.16179,
    "h": 324.6
  },
  "luminance": 0.09472
}

Semantic roles & 50–950 ramp

primary
#87338E
secondary
#6FB469
accent
#D7515B
background
#FAF7FA
surface
#F5EDF4
border
#CFC8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #87338E

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

Preview Lab → · Contrast checker → · Palette generator →

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