#87198F#87198F

#87198F is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.3% C 0.193 H 325.0°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#87198F
RGBrgb(135, 25, 143)
HSLhsl(296, 70%, 33%)
HSVhsv(296, 83%, 56%)
CMYKcmyk(5.6%, 82.5%, 0%, 43.9%)
CIE-LABlab(33.63, 58.06, -39.60)
CIE-LCHlch(33.63, 70.28, 325.71°)
OKLaboklab(45.35% 0.1578 -0.1105)
OKLCHoklch(45.35% 0.193 325)
XYZxyz(15.2969, 7.8304, 26.6870)
Luminance0.0783 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87198F #218F19
analogous
#4C198F #87198F #8F195C
triadic
#87198F #8F8719 #198F87
tetradic
#87198F #8F4C19 #218F19 #195C8F
square
#87198F #8F4C19 #218F19 #195C8F
split-complementary
#87198F #5C8F19 #198F4C
monochromatic
#250727 #56105B #87198F #B822C3 #D444DE

Accessibility & contrast

On white

8.18
#87198F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#87198F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87198F
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87198F#FFFFFF#000000##FFFFFF
##87198F1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#34538C
Tritanopia (blue-blind)
#8A3155
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #87198f;
/* rgb */ color: rgb(135, 25, 143);
/* oklch */ color: oklch(45.3% 0.193 325.0);
Tailwind
colors: {
  custom: {
    50: '#ae66b0',
    500: '#87198f',
    950: '#000000',
  },
}
SCSS
$custom: #87198f;
$custom-light: #ae66b0;
$custom-dark: #000000;
JSON
{
  "hex": "#87198f",
  "rgb": {
    "r": 135,
    "g": 25,
    "b": 143
  },
  "hsl": {
    "h": 295.932,
    "s": 70.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.45348,
    "c": 0.1926,
    "h": 325
  },
  "luminance": 0.07829
}

Semantic roles & 50–950 ramp

primary
#87198F
secondary
#4DBF44
accent
#ED3B47
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110610
muted
#807A7F

Preview Lab

Preview with #87198F

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

Preview Lab → · Contrast checker → · Palette generator →

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