#871895#871895

#871895 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.7% C 0.198 H 322.8°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#871895
RGBrgb(135, 24, 149)
HSLhsl(293, 72%, 34%)
HSVhsv(293, 84%, 58%)
CMYKcmyk(9.4%, 83.9%, 0%, 41.6%)
CIE-LABlab(33.93, 59.37, -42.80)
CIE-LCHlch(33.93, 73.19, 324.21°)
OKLaboklab(45.69% 0.1578 -0.1198)
OKLCHoklch(45.69% 0.198 322.8)
XYZxyz(15.7426, 7.9751, 29.1381)
Luminance0.0797 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871895 #269518
analogous
#491895 #871895 #951865
triadic
#871895 #958718 #189587
tetradic
#871895 #954918 #269518 #186595
square
#871895 #954918 #269518 #186595
split-complementary
#871895 #659518 #189549
monochromatic
#27072C #571060 #871895 #B720CA #D046E1

Accessibility & contrast

On white

8.09
#871895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#871895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871895
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871895#FFFFFF#000000##FFFFFF
##8718951.008.092.598.09
#FFFFFF8.091.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004898
Deuteranopia (green-blind)
#2F5492
Tritanopia (blue-blind)
#893459
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #871895;
/* rgb */ color: rgb(135, 24, 149);
/* oklch */ color: oklch(45.7% 0.198 322.8);
Tailwind
colors: {
  custom: {
    50: '#ae66b5',
    500: '#871895',
    950: '#000000',
  },
}
SCSS
$custom: #871895;
$custom-light: #ae66b5;
$custom-dark: #000000;
JSON
{
  "hex": "#871895",
  "rgb": {
    "r": 135,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 293.28,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.45687,
    "c": 0.19814,
    "h": 322.8
  },
  "luminance": 0.07974
}

Semantic roles & 50–950 ramp

primary
#871895
secondary
#54C246
accent
#EF394D
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #871895

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

Preview Lab → · Contrast checker → · Palette generator →

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