#872286#872286

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

Color values

HEX#872286
RGBrgb(135, 34, 134)
HSLhsl(301, 60%, 33%)
HSVhsv(301, 75%, 53%)
CMYKcmyk(0%, 74.8%, 0.7%, 47.1%)
CIE-LABlab(34.02, 53.80, -33.41)
CIE-LCHlch(34.02, 63.33, 328.16°)
OKLaboklab(45.45% 0.1506 -0.0925)
OKLCHoklch(45.45% 0.177 328.4)
XYZxyz(14.8666, 8.0173, 23.3141)
Luminance0.0802 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872286 #228723
analogous
#552287 #872286 #872253
triadic
#872286 #868722 #228687
tetradic
#872286 #875522 #228723 #225387
square
#872286 #875522 #228723 #225387
split-complementary
#872286 #538722 #228755
monochromatic
#250925 #561655 #872286 #B82EB7 #D350D2

Accessibility & contrast

On white

8.07
#872286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#872286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #872286
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872286#FFFFFF#000000##FFFFFF
##8722861.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4889
Deuteranopia (green-blind)
#3E5583
Tritanopia (blue-blind)
#8C3152
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #872286;
/* rgb */ color: rgb(135, 34, 134);
/* oklch */ color: oklch(45.5% 0.177 328.4);
Tailwind
colors: {
  custom: {
    50: '#ad68aa',
    500: '#872286',
    950: '#000000',
  },
}
SCSS
$custom: #872286;
$custom-light: #ad68aa;
$custom-dark: #000000;
JSON
{
  "hex": "#872286",
  "rgb": {
    "r": 135,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 300.594,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.4545,
    "c": 0.17674,
    "h": 328.4
  },
  "luminance": 0.08016
}

Semantic roles & 50–950 ramp

primary
#872286
secondary
#4EB74F
accent
#E34645
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #872286

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

Preview Lab → · Contrast checker → · Palette generator →

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