#872AAA#872AAA

#872AAA is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.5% C 0.199 H 314.8°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#872AAA
RGBrgb(135, 42, 170)
HSLhsl(284, 60%, 42%)
HSVhsv(284, 75%, 67%)
CMYKcmyk(20.6%, 75.3%, 0%, 33.3%)
CIE-LABlab(37.32, 57.71, -50.04)
CIE-LCHlch(37.32, 76.39, 319.07°)
OKLaboklab(48.53% 0.1402 -0.1412)
OKLCHoklch(48.53% 0.199 314.8)
XYZxyz(18.0741, 9.7098, 38.9445)
Luminance0.0971 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872AAA #4DAA2A
analogous
#472AAA #872AAA #AA2A8D
triadic
#872AAA #AA872A #2AAA87
tetradic
#872AAA #AA472A #4DAA2A #2A8DAA
square
#872AAA #AA472A #4DAA2A #2A8DAA
split-complementary
#872AAA #8DAA2A #2AAA47
monochromatic
#391248 #601E79 #872AAA #A941D0 #BF72DC

Accessibility & contrast

On white

7.14
#872AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#872AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #872AAA
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872AAA#FFFFFF#000000##FFFFFF
##872AAA1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#245AA7
Tritanopia (blue-blind)
#844668
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #872aaa;
/* rgb */ color: rgb(135, 42, 170);
/* oklch */ color: oklch(48.5% 0.199 314.8);
Tailwind
colors: {
  custom: {
    50: '#ae6dc4',
    500: '#872aaa',
    950: '#000000',
  },
}
SCSS
$custom: #872aaa;
$custom-light: #ae6dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#872aaa",
  "rgb": {
    "r": 135,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 283.594,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.48532,
    "c": 0.19895,
    "h": 314.8
  },
  "luminance": 0.09709
}

Semantic roles & 50–950 ramp

primary
#872AAA
secondary
#84C36C
accent
#E44470
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #872AAA

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

Preview Lab → · Contrast checker → · Palette generator →

#872AAA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva