#872BB2#872BB2

#872BB2 is a mid, highly saturated purple. Relative luminance 0.101; OKLCH L 49.2% C 0.205 H 312.3°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#872BB2
RGBrgb(135, 43, 178)
HSLhsl(281, 61%, 43%)
HSVhsv(281, 76%, 70%)
CMYKcmyk(24.2%, 75.8%, 0%, 30.2%)
CIE-LABlab(38.01, 58.99, -53.69)
CIE-LCHlch(38.01, 79.76, 317.69°)
OKLaboklab(49.2% 0.138 -0.1519)
OKLCHoklch(49.2% 0.205 312.3)
XYZxyz(18.8900, 10.0935, 43.0640)
Luminance0.1009 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872BB2 #56B22B
analogous
#432BB2 #872BB2 #B22B99
triadic
#872BB2 #B2872B #2BB287
tetradic
#872BB2 #B2432B #56B22B #2B99B2
square
#872BB2 #B2432B #56B22B #2B99B2
split-complementary
#872BB2 #99B22B #2BB243
monochromatic
#3C134F #621F81 #872BB2 #A648D3 #BE79DF

Accessibility & contrast

On white

6.96
#872BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#872BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #872BB2
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872BB2#FFFFFF#000000##FFFFFF
##872BB21.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#175BAF
Tritanopia (blue-blind)
#824A6D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #872bb2;
/* rgb */ color: rgb(135, 43, 178);
/* oklch */ color: oklch(49.2% 0.205 312.3);
Tailwind
colors: {
  custom: {
    50: '#ae6eca',
    500: '#872bb2',
    950: '#000000',
  },
}
SCSS
$custom: #872bb2;
$custom-light: #ae6eca;
$custom-dark: #000000;
JSON
{
  "hex": "#872bb2",
  "rgb": {
    "r": 135,
    "g": 43,
    "b": 178
  },
  "hsl": {
    "h": 280.889,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.492,
    "c": 0.20522,
    "h": 312.3
  },
  "luminance": 0.10093
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #872BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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