#872291#872291

#872291 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.1% C 0.186 H 324.0°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#872291
RGBrgb(135, 34, 145)
HSLhsl(295, 62%, 35%)
HSVhsv(295, 77%, 57%)
CMYKcmyk(6.9%, 76.6%, 0%, 43.1%)
CIE-LABlab(34.68, 55.73, -39.14)
CIE-LCHlch(34.68, 68.11, 324.92°)
OKLaboklab(46.14% 0.1502 -0.1092)
OKLCHoklch(46.14% 0.186 324)
XYZxyz(15.6741, 8.3403, 27.5668)
Luminance0.0834 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872291 #2C9122
analogous
#502291 #872291 #912263
triadic
#872291 #918722 #229187
tetradic
#872291 #915022 #2C9122 #226391
square
#872291 #915022 #2C9122 #226391
split-complementary
#872291 #639122 #229150
monochromatic
#2B0B2E #59165F #872291 #B52EC3 #CC56D7

Accessibility & contrast

On white

7.87
#872291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#872291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #872291
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872291#FFFFFF#000000##FFFFFF
##8722911.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A94
Deuteranopia (green-blind)
#37568E
Tritanopia (blue-blind)
#8A3758
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #872291;
/* rgb */ color: rgb(135, 34, 145);
/* oklch */ color: oklch(46.1% 0.186 324.0);
Tailwind
colors: {
  custom: {
    50: '#ae69b2',
    500: '#872291',
    950: '#000000',
  },
}
SCSS
$custom: #872291;
$custom-light: #ae69b2;
$custom-dark: #000000;
JSON
{
  "hex": "#872291",
  "rgb": {
    "r": 135,
    "g": 34,
    "b": 145
  },
  "hsl": {
    "h": 294.595,
    "s": 62.011,
    "l": 35.098
  },
  "oklch": {
    "l": 0.46136,
    "c": 0.18573,
    "h": 324
  },
  "luminance": 0.08339
}

Semantic roles & 50–950 ramp

primary
#872291
secondary
#5DBB53
accent
#E54351
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #872291

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

Preview Lab → · Contrast checker → · Palette generator →

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