#872278#872278

#872278 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.6% C 0.166 H 334.7°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#872278
RGBrgb(135, 34, 120)
HSLhsl(309, 60%, 33%)
HSVhsv(309, 75%, 53%)
CMYKcmyk(0%, 74.8%, 11.1%, 47.1%)
CIE-LABlab(33.25, 51.49, -25.88)
CIE-LCHlch(33.25, 57.63, 333.32°)
OKLaboklab(44.65% 0.15 -0.0707)
OKLCHoklch(44.65% 0.166 334.7)
XYZxyz(13.9540, 7.6522, 18.5078)
Luminance0.0765 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872278 #228731
analogous
#632287 #872278 #872245
triadic
#872278 #788722 #227887
tetradic
#872278 #876322 #228731 #224587
square
#872278 #876322 #228731 #224587
split-complementary
#872278 #458722 #228763
monochromatic
#250921 #56164D #872278 #B82EA3 #D350C0

Accessibility & contrast

On white

8.30
#872278 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#872278 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #872278
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872278#FFFFFF#000000##FFFFFF
##8722781.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21457A
Deuteranopia (green-blind)
#455376
Tritanopia (blue-blind)
#8E2A4A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #872278;
/* rgb */ color: rgb(135, 34, 120);
/* oklch */ color: oklch(44.6% 0.166 334.7);
Tailwind
colors: {
  custom: {
    50: '#ad689f',
    500: '#872278',
    950: '#000000',
  },
}
SCSS
$custom: #872278;
$custom-light: #ad689f;
$custom-dark: #000000;
JSON
{
  "hex": "#872278",
  "rgb": {
    "r": 135,
    "g": 34,
    "b": 120
  },
  "hsl": {
    "h": 308.911,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44647,
    "c": 0.16584,
    "h": 334.7
  },
  "luminance": 0.07651
}

Semantic roles & 50–950 ramp

primary
#872278
secondary
#4EB75E
accent
#E35C45
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #872278

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

Preview Lab → · Contrast checker → · Palette generator →

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