#872478#872478

#872478 is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.8% C 0.163 H 334.8°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#872478
RGBrgb(135, 36, 120)
HSLhsl(309, 58%, 34%)
HSVhsv(309, 73%, 53%)
CMYKcmyk(0%, 73.3%, 11.1%, 47.1%)
CIE-LABlab(33.50, 50.78, -25.48)
CIE-LCHlch(33.50, 56.82, 333.35°)
OKLaboklab(44.83% 0.1479 -0.0696)
OKLCHoklch(44.83% 0.163 334.8)
XYZxyz(14.0129, 7.7699, 18.5274)
Luminance0.0777 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872478 #248733
analogous
#642487 #872478 #872446
triadic
#872478 #788724 #247887
tetradic
#872478 #876424 #248733 #244687
square
#872478 #876424 #248733 #244687
split-complementary
#872478 #468724 #248764
monochromatic
#260A22 #57174D #872478 #B731A3 #D154BE

Accessibility & contrast

On white

8.22
#872478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#872478 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #872478
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872478#FFFFFF#000000##FFFFFF
##8724781.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23457A
Deuteranopia (green-blind)
#465476
Tritanopia (blue-blind)
#8E2C4B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #872478;
/* rgb */ color: rgb(135, 36, 120);
/* oklch */ color: oklch(44.8% 0.163 334.8);
Tailwind
colors: {
  custom: {
    50: '#ad699f',
    500: '#872478',
    950: '#000000',
  },
}
SCSS
$custom: #872478;
$custom-light: #ad699f;
$custom-dark: #000000;
JSON
{
  "hex": "#872478",
  "rgb": {
    "r": 135,
    "g": 36,
    "b": 120
  },
  "hsl": {
    "h": 309.091,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.44828,
    "c": 0.16346,
    "h": 334.8
  },
  "luminance": 0.07769
}

Semantic roles & 50–950 ramp

primary
#872478
secondary
#51B560
accent
#E15E47
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #872478

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

Preview Lab → · Contrast checker → · Palette generator →

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