#87238E#87238E

#87238E is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.0% C 0.182 H 325.1°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#87238E
RGBrgb(135, 35, 142)
HSLhsl(296, 60%, 35%)
HSVhsv(296, 75%, 56%)
CMYKcmyk(4.9%, 75.4%, 0%, 44.3%)
CIE-LABlab(34.61, 54.86, -37.41)
CIE-LCHlch(34.61, 66.40, 325.71°)
OKLaboklab(46.03% 0.1495 -0.1041)
OKLCHoklch(46.03% 0.182 325.1)
XYZxyz(15.4748, 8.3070, 26.3743)
Luminance0.0831 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87238E #2A8E23
analogous
#52238E #87238E #8E235F
triadic
#87238E #8E8723 #238E87
tetradic
#87238E #8E5223 #2A8E23 #235F8E
square
#87238E #8E5223 #2A8E23 #235F8E
split-complementary
#87238E #5F8E23 #238E52
monochromatic
#2A0B2C #58175D #87238E #B62FBF #CD56D5

Accessibility & contrast

On white

7.89
#87238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#87238E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87238E
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87238E#FFFFFF#000000##FFFFFF
##87238E1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A91
Deuteranopia (green-blind)
#3A568B
Tritanopia (blue-blind)
#8A3657
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #87238e;
/* rgb */ color: rgb(135, 35, 142);
/* oklch */ color: oklch(46.0% 0.182 325.1);
Tailwind
colors: {
  custom: {
    50: '#ad69af',
    500: '#87238e',
    950: '#000000',
  },
}
SCSS
$custom: #87238e;
$custom-light: #ad69af;
$custom-dark: #000000;
JSON
{
  "hex": "#87238e",
  "rgb": {
    "r": 135,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 296.075,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46029,
    "c": 0.18217,
    "h": 325.1
  },
  "luminance": 0.08306
}

Semantic roles & 50–950 ramp

primary
#87238E
secondary
#5AB953
accent
#E4444F
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #87238E

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

Preview Lab → · Contrast checker → · Palette generator →

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