#872288#872288

#872288 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.6% C 0.178 H 327.6°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#872288
RGBrgb(135, 34, 136)
HSLhsl(299, 60%, 33%)
HSVhsv(299, 75%, 53%)
CMYKcmyk(0.7%, 75%, 0%, 46.7%)
CIE-LABlab(34.14, 54.14, -34.47)
CIE-LCHlch(34.14, 64.18, 327.52°)
OKLaboklab(45.57% 0.1506 -0.0956)
OKLCHoklch(45.57% 0.178 327.6)
XYZxyz(15.0074, 8.0736, 24.0557)
Luminance0.0807 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872288 #238822
analogous
#542288 #872288 #882256
triadic
#872288 #888722 #228887
tetradic
#872288 #885422 #238822 #225688
square
#872288 #885422 #238822 #225688
split-complementary
#872288 #568822 #228854
monochromatic
#260A26 #561657 #872288 #B82EB9 #D251D3

Accessibility & contrast

On white

8.03
#872288 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #872288
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872288#FFFFFF#000000##FFFFFF
##8722881.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #872288;
/* rgb */ color: rgb(135, 34, 136);
/* oklch */ color: oklch(45.6% 0.178 327.6);
Tailwind
colors: {
  custom: {
    50: '#ad69ab',
    500: '#872288',
    950: '#000000',
  },
}
SCSS
$custom: #872288;
$custom-light: #ad69ab;
$custom-dark: #000000;
JSON
{
  "hex": "#872288",
  "rgb": {
    "r": 135,
    "g": 34,
    "b": 136
  },
  "hsl": {
    "h": 299.412,
    "s": 60,
    "l": 33.333
  },
  "oklch": {
    "l": 0.45572,
    "c": 0.17835,
    "h": 327.6
  },
  "luminance": 0.08073
}

Semantic roles & 50–950 ramp

primary
#872288
secondary
#50B74F
accent
#E34546
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #872288

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

Preview Lab → · Contrast checker → · Palette generator →

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