#872277#872277

#872277 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.6% C 0.165 H 335.2°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#872277
RGBrgb(135, 34, 119)
HSLhsl(310, 60%, 33%)
HSVhsv(310, 75%, 53%)
CMYKcmyk(0%, 74.8%, 11.9%, 47.1%)
CIE-LABlab(33.20, 51.34, -25.33)
CIE-LCHlch(33.20, 57.24, 333.74°)
OKLaboklab(44.59% 0.1499 -0.0692)
OKLCHoklch(44.59% 0.165 335.2)
XYZxyz(13.8936, 7.6281, 18.1898)
Luminance0.0763 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872277 #228732
analogous
#642287 #872277 #872244
triadic
#872277 #778722 #227787
tetradic
#872277 #876422 #228732 #224487
square
#872277 #876422 #228732 #224487
split-complementary
#872277 #448722 #228764
monochromatic
#250921 #56164C #872277 #B82EA2 #D350BE

Accessibility & contrast

On white

8.32
#872277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #872277
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872277#FFFFFF#000000##FFFFFF
##8722771.008.322.538.32
#FFFFFF8.321.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224479
Deuteranopia (green-blind)
#465375
Tritanopia (blue-blind)
#8E2A4A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #872277;
/* rgb */ color: rgb(135, 34, 119);
/* oklch */ color: oklch(44.6% 0.165 335.2);
Tailwind
colors: {
  custom: {
    50: '#ad689e',
    500: '#872277',
    950: '#000000',
  },
}
SCSS
$custom: #872277;
$custom-light: #ad689e;
$custom-dark: #000000;
JSON
{
  "hex": "#872277",
  "rgb": {
    "r": 135,
    "g": 34,
    "b": 119
  },
  "hsl": {
    "h": 309.505,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44593,
    "c": 0.16509,
    "h": 335.2
  },
  "luminance": 0.07627
}

Semantic roles & 50–950 ramp

primary
#872277
secondary
#4EB75F
accent
#E35E45
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #872277

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

Preview Lab → · Contrast checker → · Palette generator →

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