#872287#872287

#872287 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.5% C 0.178 H 328.0°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#872287
RGBrgb(135, 34, 135)
HSLhsl(300, 60%, 33%)
HSVhsv(300, 75%, 53%)
CMYKcmyk(0%, 74.8%, 0%, 47.1%)
CIE-LABlab(34.08, 53.97, -33.94)
CIE-LCHlch(34.08, 63.76, 327.84°)
OKLaboklab(45.51% 0.1506 -0.094)
OKLCHoklch(45.51% 0.178 328)
XYZxyz(14.9367, 8.0453, 23.6832)
Luminance0.0804 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872287 #228722
analogous
#542287 #872287 #872254
triadic
#872287 #878722 #228787
tetradic
#872287 #875422 #228722 #225487
square
#872287 #875422 #228722 #225487
split-complementary
#872287 #548722 #228754
monochromatic
#250925 #561656 #872287 #B82EB8 #D350D3

Accessibility & contrast

On white

8.05
#872287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#872287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #872287
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872287#FFFFFF#000000##FFFFFF
##8722871.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D488A
Deuteranopia (green-blind)
#3E5584
Tritanopia (blue-blind)
#8B3253
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #872287;
/* rgb */ color: rgb(135, 34, 135);
/* oklch */ color: oklch(45.5% 0.178 328.0);
Tailwind
colors: {
  custom: {
    50: '#ad68aa',
    500: '#872287',
    950: '#000000',
  },
}
SCSS
$custom: #872287;
$custom-light: #ad68aa;
$custom-dark: #000000;
JSON
{
  "hex": "#872287",
  "rgb": {
    "r": 135,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 300,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.45511,
    "c": 0.17754,
    "h": 328
  },
  "luminance": 0.08044
}

Semantic roles & 50–950 ramp

primary
#872287
secondary
#4EB74E
accent
#E34545
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #872287

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

Preview Lab → · Contrast checker → · Palette generator →

#872287 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva