#872479#872479

#872479 is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.9% C 0.164 H 334.3°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#872479
RGBrgb(135, 36, 121)
HSLhsl(308, 58%, 34%)
HSVhsv(308, 73%, 53%)
CMYKcmyk(0%, 73.3%, 10.4%, 47.1%)
CIE-LABlab(33.55, 50.94, -26.03)
CIE-LCHlch(33.55, 57.21, 332.93°)
OKLaboklab(44.88% 0.148 -0.0712)
OKLCHoklch(44.88% 0.164 334.3)
XYZxyz(14.0739, 7.7943, 18.8487)
Luminance0.0779 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872479 #248732
analogous
#632487 #872479 #872447
triadic
#872479 #798724 #247987
tetradic
#872479 #876324 #248732 #244787
square
#872479 #876324 #248732 #244787
split-complementary
#872479 #478724 #248763
monochromatic
#260A22 #57174E #872479 #B731A4 #D154C0

Accessibility & contrast

On white

8.21
#872479 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#872479 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #872479
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872479#FFFFFF#000000##FFFFFF
##8724791.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22467B
Deuteranopia (green-blind)
#465477
Tritanopia (blue-blind)
#8E2C4C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #872479;
/* rgb */ color: rgb(135, 36, 121);
/* oklch */ color: oklch(44.9% 0.164 334.3);
Tailwind
colors: {
  custom: {
    50: '#ad69a0',
    500: '#872479',
    950: '#000000',
  },
}
SCSS
$custom: #872479;
$custom-light: #ad69a0;
$custom-dark: #000000;
JSON
{
  "hex": "#872479",
  "rgb": {
    "r": 135,
    "g": 36,
    "b": 121
  },
  "hsl": {
    "h": 308.485,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.44882,
    "c": 0.16422,
    "h": 334.3
  },
  "luminance": 0.07793
}

Semantic roles & 50–950 ramp

primary
#872479
secondary
#51B55F
accent
#E15D47
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #872479

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

Preview Lab → · Contrast checker → · Palette generator →

#872479 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva