#872997#872997

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

Color values

HEX#872997
RGBrgb(135, 41, 151)
HSLhsl(291, 57%, 38%)
HSVhsv(291, 73%, 59%)
CMYKcmyk(10.6%, 72.8%, 0%, 40.8%)
CIE-LABlab(35.93, 54.35, -40.81)
CIE-LCHlch(35.93, 67.97, 323.10°)
OKLaboklab(47.15% 0.1431 -0.1141)
OKLCHoklch(47.15% 0.183 321.4)
XYZxyz(16.3699, 8.9720, 30.1417)
Luminance0.0897 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872997 #399729
analogous
#502997 #872997 #972970
triadic
#872997 #978729 #299787
tetradic
#872997 #975029 #399729 #297097
square
#872997 #975029 #399729 #297097
split-complementary
#872997 #709729 #299750
monochromatic
#310F37 #5C1C67 #872997 #B236C7 #C565D5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##872997#FFFFFF#000000##FFFFFF
##8729971.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)
#004E9A
Deuteranopia (green-blind)
#365894
Tritanopia (blue-blind)
#883D5D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #872997;
/* rgb */ color: rgb(135, 41, 151);
/* oklch */ color: oklch(47.1% 0.183 321.4);
Tailwind
colors: {
  custom: {
    50: '#ad6cb6',
    500: '#872997',
    950: '#000000',
  },
}
SCSS
$custom: #872997;
$custom-light: #ad6cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#872997",
  "rgb": {
    "r": 135,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 291.273,
    "s": 57.292,
    "l": 37.647
  },
  "oklch": {
    "l": 0.47147,
    "c": 0.18304,
    "h": 321.4
  },
  "luminance": 0.08971
}

Semantic roles & 50–950 ramp

primary
#872997
secondary
#6EBB61
accent
#E1475E
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #872997

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

Preview Lab → · Contrast checker → · Palette generator →

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