#87238F#87238F

#87238F is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.1% C 0.183 H 324.7°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#87238F
RGBrgb(135, 35, 143)
HSLhsl(296, 61%, 35%)
HSVhsv(296, 76%, 56%)
CMYKcmyk(5.6%, 75.5%, 0%, 43.9%)
CIE-LABlab(34.68, 55.04, -37.92)
CIE-LCHlch(34.68, 66.84, 325.43°)
OKLaboklab(46.09% 0.1494 -0.1056)
OKLCHoklch(46.09% 0.183 324.7)
XYZxyz(15.5502, 8.3371, 26.7715)
Luminance0.0834 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87238F #2B8F23
analogous
#51238F #87238F #8F2361
triadic
#87238F #8F8723 #238F87
tetradic
#87238F #8F5123 #2B8F23 #23618F
square
#87238F #8F5123 #2B8F23 #23618F
split-complementary
#87238F #618F23 #238F51
monochromatic
#2A0B2D #59175E #87238F #B52FC0 #CC57D6

Accessibility & contrast

On white

7.87
#87238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#87238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87238F
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87238F#FFFFFF#000000##FFFFFF
##87238F1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#39568C
Tritanopia (blue-blind)
#8A3657
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #87238f;
/* rgb */ color: rgb(135, 35, 143);
/* oklch */ color: oklch(46.1% 0.183 324.7);
Tailwind
colors: {
  custom: {
    50: '#ad69b0',
    500: '#87238f',
    950: '#000000',
  },
}
SCSS
$custom: #87238f;
$custom-light: #ad69b0;
$custom-dark: #000000;
JSON
{
  "hex": "#87238f",
  "rgb": {
    "r": 135,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 295.556,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.46092,
    "c": 0.183,
    "h": 324.7
  },
  "luminance": 0.08336
}

Semantic roles & 50–950 ramp

primary
#87238F
secondary
#5BBA54
accent
#E44450
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #87238F

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

Preview Lab → · Contrast checker → · Palette generator →

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