#872CB2#872CB2

#872CB2 is a mid, highly saturated purple. Relative luminance 0.102; OKLCH L 49.3% C 0.204 H 312.2°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#872CB2
RGBrgb(135, 44, 178)
HSLhsl(281, 60%, 44%)
HSVhsv(281, 75%, 70%)
CMYKcmyk(24.2%, 75.3%, 0%, 30.2%)
CIE-LABlab(38.14, 58.61, -53.48)
CIE-LCHlch(38.14, 79.34, 317.62°)
OKLaboklab(49.29% 0.1371 -0.1513)
OKLCHoklch(49.29% 0.204 312.2)
XYZxyz(18.9268, 10.1671, 43.0763)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872CB2 #57B22C
analogous
#442CB2 #872CB2 #B22C9A
triadic
#872CB2 #B2872C #2CB287
tetradic
#872CB2 #B2442C #57B22C #2C9AB2
square
#872CB2 #B2442C #57B22C #2C9AB2
split-complementary
#872CB2 #9AB22C #2CB244
monochromatic
#3D1450 #622081 #872CB2 #A649D2 #BE7ADE

Accessibility & contrast

On white

6.92
#872CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#872CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #872CB2
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872CB2#FFFFFF#000000##FFFFFF
##872CB21.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#185CAF
Tritanopia (blue-blind)
#824B6D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #872cb2;
/* rgb */ color: rgb(135, 44, 178);
/* oklch */ color: oklch(49.3% 0.204 312.2);
Tailwind
colors: {
  custom: {
    50: '#ae6fca',
    500: '#872cb2',
    950: '#000000',
  },
}
SCSS
$custom: #872cb2;
$custom-light: #ae6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#872cb2",
  "rgb": {
    "r": 135,
    "g": 44,
    "b": 178
  },
  "hsl": {
    "h": 280.746,
    "s": 60.36,
    "l": 43.529
  },
  "oklch": {
    "l": 0.49293,
    "c": 0.20415,
    "h": 312.2
  },
  "luminance": 0.10167
}

Semantic roles & 50–950 ramp

primary
#872CB2
secondary
#8EC673
accent
#E44477
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #872CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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