#862787#862787

#862787 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.8% C 0.171 H 327.5°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#862787
RGBrgb(134, 39, 135)
HSLhsl(299, 55%, 34%)
HSVhsv(299, 71%, 53%)
CMYKcmyk(0.7%, 71.1%, 0%, 47.1%)
CIE-LABlab(34.54, 51.94, -33.22)
CIE-LCHlch(34.54, 61.66, 327.40°)
OKLaboklab(45.81% 0.1444 -0.092)
OKLCHoklch(45.81% 0.171 327.5)
XYZxyz(14.9300, 8.2697, 23.7268)
Luminance0.0827 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862787 #288727
analogous
#562787 #862787 #872758
triadic
#862787 #878627 #278786
tetradic
#862787 #875627 #288727 #275887
square
#862787 #875627 #288727 #275887
split-complementary
#862787 #588727 #278756
monochromatic
#280C28 #571958 #862787 #B535B6 #CE59CF

Accessibility & contrast

On white

7.91
#862787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#862787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862787
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862787#FFFFFF#000000##FFFFFF
##8627871.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16498A
Deuteranopia (green-blind)
#3F5585
Tritanopia (blue-blind)
#8A3554
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #862787;
/* rgb */ color: rgb(134, 39, 135);
/* oklch */ color: oklch(45.8% 0.171 327.5);
Tailwind
colors: {
  custom: {
    50: '#ac6baa',
    500: '#862787',
    950: '#000000',
  },
}
SCSS
$custom: #862787;
$custom-light: #ac6baa;
$custom-dark: #000000;
JSON
{
  "hex": "#862787",
  "rgb": {
    "r": 134,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 299.375,
    "s": 55.172,
    "l": 34.118
  },
  "oklch": {
    "l": 0.45808,
    "c": 0.17121,
    "h": 327.5
  },
  "luminance": 0.08269
}

Semantic roles & 50–950 ramp

primary
#862787
secondary
#57B456
accent
#DF494B
background
#FAF6FA
surface
#F5ECF4
border
#CFC7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #862787

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

Preview Lab → · Contrast checker → · Palette generator →

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