#872678#872678

#872678 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.0% C 0.161 H 334.8°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#872678
RGBrgb(135, 38, 120)
HSLhsl(309, 56%, 34%)
HSVhsv(309, 72%, 53%)
CMYKcmyk(0%, 71.9%, 11.1%, 47.1%)
CIE-LABlab(33.76, 50.04, -25.07)
CIE-LCHlch(33.76, 55.97, 333.39°)
OKLaboklab(45.02% 0.1457 -0.0685)
OKLCHoklch(45.02% 0.161 334.8)
XYZxyz(14.0751, 7.8944, 18.5481)
Luminance0.0789 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872678 #268735
analogous
#662687 #872678 #872648
triadic
#872678 #788726 #267887
tetradic
#872678 #876626 #268735 #264887
square
#872678 #876626 #268735 #264887
split-complementary
#872678 #488726 #268766
monochromatic
#270B23 #57194E #872678 #B733A2 #D058BD

Accessibility & contrast

On white

8.14
#872678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#872678 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #872678
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872678#FFFFFF#000000##FFFFFF
##8726781.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25467A
Deuteranopia (green-blind)
#475576
Tritanopia (blue-blind)
#8E2D4C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #872678;
/* rgb */ color: rgb(135, 38, 120);
/* oklch */ color: oklch(45.0% 0.161 334.8);
Tailwind
colors: {
  custom: {
    50: '#ad6a9f',
    500: '#872678',
    950: '#000000',
  },
}
SCSS
$custom: #872678;
$custom-light: #ad6a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#872678",
  "rgb": {
    "r": 135,
    "g": 38,
    "b": 120
  },
  "hsl": {
    "h": 309.278,
    "s": 56.069,
    "l": 33.922
  },
  "oklch": {
    "l": 0.45018,
    "c": 0.16098,
    "h": 334.8
  },
  "luminance": 0.07893
}

Semantic roles & 50–950 ramp

primary
#872678
secondary
#54B563
accent
#DF6048
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #872678

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

Preview Lab → · Contrast checker → · Palette generator →

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