#872ABC#872ABC

#872ABC is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.9% C 0.215 H 309.5°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#872ABC
RGBrgb(135, 42, 188)
HSLhsl(278, 63%, 45%)
HSVhsv(278, 78%, 74%)
CMYKcmyk(28.2%, 77.7%, 0%, 26.3%)
CIE-LABlab(38.62, 61.45, -58.61)
CIE-LCHlch(38.62, 84.92, 316.36°)
OKLaboklab(49.86% 0.1369 -0.1663)
OKLCHoklch(49.86% 0.215 309.5)
XYZxyz(19.8949, 10.4381, 48.5339)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872ABC #5FBC2A
analogous
#3E2ABC #872ABC #BC2AA8
triadic
#872ABC #BC872A #2ABC87
tetradic
#872ABC #BC3E2A #5FBC2A #2AA8BC
square
#872ABC #BC3E2A #5FBC2A #2AA8BC
split-complementary
#872ABC #A8BC2A #2ABC3E
monochromatic
#3F1458 #631F8A #872ABC #A54CD7 #BE7EE2

Accessibility & contrast

On white

6.80
#872ABC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#872ABC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #872ABC
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872ABC#FFFFFF#000000##FFFFFF
##872ABC1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C0
Deuteranopia (green-blind)
#005CB9
Tritanopia (blue-blind)
#7F4E73
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #872abc;
/* rgb */ color: rgb(135, 42, 188);
/* oklch */ color: oklch(49.9% 0.215 309.5);
Tailwind
colors: {
  custom: {
    50: '#af6ed1',
    500: '#872abc',
    950: '#000000',
  },
}
SCSS
$custom: #872abc;
$custom-light: #af6ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#872abc",
  "rgb": {
    "r": 135,
    "g": 42,
    "b": 188
  },
  "hsl": {
    "h": 278.219,
    "s": 63.478,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49859,
    "c": 0.21546,
    "h": 309.5
  },
  "luminance": 0.10438
}

Semantic roles & 50–950 ramp

primary
#872ABC
secondary
#95CB77
accent
#E7417D
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #872ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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