#872899#872899

#872899 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.2% C 0.186 H 320.7°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#872899
RGBrgb(135, 40, 153)
HSLhsl(290, 59%, 38%)
HSVhsv(290, 74%, 60%)
CMYKcmyk(11.8%, 73.9%, 0%, 40%)
CIE-LABlab(35.93, 55.11, -42.04)
CIE-LCHlch(35.93, 69.31, 322.66°)
OKLaboklab(47.18% 0.144 -0.1177)
OKLCHoklch(47.18% 0.186 320.7)
XYZxyz(16.4996, 8.9693, 30.9930)
Luminance0.0897 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872899 #3A9928
analogous
#4E2899 #872899 #992873
triadic
#872899 #998728 #289987
tetradic
#872899 #994E28 #3A9928 #287399
square
#872899 #994E28 #3A9928 #287399
split-complementary
#872899 #739928 #28994E
monochromatic
#310F38 #5C1B68 #872899 #B235CA #C565D7

Accessibility & contrast

On white

7.52
#872899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#872899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #872899
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872899#FFFFFF#000000##FFFFFF
##8728991.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9C
Deuteranopia (green-blind)
#345896
Tritanopia (blue-blind)
#883E5E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #872899;
/* rgb */ color: rgb(135, 40, 153);
/* oklch */ color: oklch(47.2% 0.186 320.7);
Tailwind
colors: {
  custom: {
    50: '#ad6cb8',
    500: '#872899',
    950: '#000000',
  },
}
SCSS
$custom: #872899;
$custom-light: #ad6cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#872899",
  "rgb": {
    "r": 135,
    "g": 40,
    "b": 153
  },
  "hsl": {
    "h": 290.442,
    "s": 58.549,
    "l": 37.843
  },
  "oklch": {
    "l": 0.47183,
    "c": 0.18597,
    "h": 320.7
  },
  "luminance": 0.08968
}

Semantic roles & 50–950 ramp

primary
#872899
secondary
#6FBD60
accent
#E2465F
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #872899

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

Preview Lab → · Contrast checker → · Palette generator →

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