#872280#872280

#872280 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.1% C 0.172 H 331.0°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#872280
RGBrgb(135, 34, 128)
HSLhsl(304, 60%, 33%)
HSVhsv(304, 75%, 53%)
CMYKcmyk(0%, 74.8%, 5.2%, 47.1%)
CIE-LABlab(33.68, 52.79, -30.22)
CIE-LCHlch(33.68, 60.83, 330.21°)
OKLaboklab(45.1% 0.1505 -0.0832)
OKLCHoklch(45.1% 0.172 331)
XYZxyz(14.4600, 7.8546, 21.1724)
Luminance0.0785 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872280 #228729
analogous
#5B2287 #872280 #87224E
triadic
#872280 #808722 #228087
tetradic
#872280 #875B22 #228729 #224E87
square
#872280 #875B22 #228729 #224E87
split-complementary
#872280 #4E8722 #22875B
monochromatic
#250923 #561652 #872280 #B82EAE #D350CA

Accessibility & contrast

On white

8.17
#872280 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#872280 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #872280
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872280#FFFFFF#000000##FFFFFF
##8722801.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194683
Deuteranopia (green-blind)
#41547E
Tritanopia (blue-blind)
#8D2E4F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #872280;
/* rgb */ color: rgb(135, 34, 128);
/* oklch */ color: oklch(45.1% 0.172 331.0);
Tailwind
colors: {
  custom: {
    50: '#ad68a5',
    500: '#872280',
    950: '#000000',
  },
}
SCSS
$custom: #872280;
$custom-light: #ad68a5;
$custom-dark: #000000;
JSON
{
  "hex": "#872280",
  "rgb": {
    "r": 135,
    "g": 34,
    "b": 128
  },
  "hsl": {
    "h": 304.158,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.45096,
    "c": 0.17197,
    "h": 331
  },
  "luminance": 0.07853
}

Semantic roles & 50–950 ramp

primary
#872280
secondary
#4EB755
accent
#E35045
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #872280

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

Preview Lab → · Contrast checker → · Palette generator →

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