#872BB5#872BB5

#872BB5 is a mid, highly saturated purple. Relative luminance 0.102; OKLCH L 49.4% C 0.208 H 311.4°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#872BB5
RGBrgb(135, 43, 181)
HSLhsl(280, 62%, 44%)
HSVhsv(280, 76%, 71%)
CMYKcmyk(25.4%, 76.2%, 0%, 29%)
CIE-LABlab(38.23, 59.61, -55.11)
CIE-LCHlch(38.23, 81.19, 317.25°)
OKLaboklab(49.42% 0.1375 -0.1561)
OKLCHoklch(49.42% 0.208 311.4)
XYZxyz(19.1945, 10.2153, 44.6677)
Luminance0.1022 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872BB5 #59B52B
analogous
#422BB5 #872BB5 #B52B9E
triadic
#872BB5 #B5872B #2BB587
tetradic
#872BB5 #B5422B #59B52B #2B9EB5
square
#872BB5 #B5422B #59B52B #2B9EB5
split-complementary
#872BB5 #9EB52B #2BB542
monochromatic
#3D1452 #621F84 #872BB5 #A649D4 #BE7BE0

Accessibility & contrast

On white

6.90
#872BB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#872BB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #872BB5
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872BB5#FFFFFF#000000##FFFFFF
##872BB51.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B9
Deuteranopia (green-blind)
#0E5CB2
Tritanopia (blue-blind)
#814C6F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #872bb5;
/* rgb */ color: rgb(135, 43, 181);
/* oklch */ color: oklch(49.4% 0.208 311.4);
Tailwind
colors: {
  custom: {
    50: '#af6ecc',
    500: '#872bb5',
    950: '#000000',
  },
}
SCSS
$custom: #872bb5;
$custom-light: #af6ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#872bb5",
  "rgb": {
    "r": 135,
    "g": 43,
    "b": 181
  },
  "hsl": {
    "h": 280,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.49421,
    "c": 0.20799,
    "h": 311.4
  },
  "luminance": 0.10215
}

Semantic roles & 50–950 ramp

primary
#872BB5
secondary
#90C874
accent
#E54379
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #872BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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