#872ABA#872ABA

#872ABA is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.7% C 0.214 H 310.0°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#872ABA
RGBrgb(135, 42, 186)
HSLhsl(279, 63%, 45%)
HSVhsv(279, 77%, 73%)
CMYKcmyk(27.4%, 77.4%, 0%, 27.1%)
CIE-LABlab(38.47, 61.03, -57.67)
CIE-LCHlch(38.47, 83.97, 316.62°)
OKLaboklab(49.71% 0.1374 -0.1636)
OKLCHoklch(49.71% 0.214 310)
XYZxyz(19.6808, 10.3524, 47.4063)
Luminance0.1035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872ABA #5DBA2A
analogous
#3F2ABA #872ABA #BA2AA5
triadic
#872ABA #BA872A #2ABA87
tetradic
#872ABA #BA3F2A #5DBA2A #2AA5BA
square
#872ABA #BA3F2A #5DBA2A #2AA5BA
split-complementary
#872ABA #A5BA2A #2ABA3F
monochromatic
#3F1356 #631F88 #872ABA #A54BD6 #BE7DE2

Accessibility & contrast

On white

6.84
#872ABA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#872ABA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #872ABA
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872ABA#FFFFFF#000000##FFFFFF
##872ABA1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BE
Deuteranopia (green-blind)
#005CB7
Tritanopia (blue-blind)
#804D71
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #872aba;
/* rgb */ color: rgb(135, 42, 186);
/* oklch */ color: oklch(49.7% 0.214 310.0);
Tailwind
colors: {
  custom: {
    50: '#af6ed0',
    500: '#872aba',
    950: '#000000',
  },
}
SCSS
$custom: #872aba;
$custom-light: #af6ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#872aba",
  "rgb": {
    "r": 135,
    "g": 42,
    "b": 186
  },
  "hsl": {
    "h": 278.75,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49707,
    "c": 0.21362,
    "h": 310
  },
  "luminance": 0.10352
}

Semantic roles & 50–950 ramp

primary
#872ABA
secondary
#94CA76
accent
#E6427C
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #872ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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