#862D87#862D87

#862D87 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.4% C 0.163 H 327.4°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#862D87
RGBrgb(134, 45, 135)
HSLhsl(299, 50%, 35%)
HSVhsv(299, 67%, 53%)
CMYKcmyk(0.7%, 66.7%, 0%, 47.1%)
CIE-LABlab(35.39, 49.54, -31.87)
CIE-LCHlch(35.39, 58.91, 327.25°)
OKLaboklab(46.42% 0.1376 -0.0881)
OKLCHoklch(46.42% 0.163 327.4)
XYZxyz(15.1428, 8.6954, 23.7978)
Luminance0.0869 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862D87 #2E872D
analogous
#592D87 #862D87 #872D5B
triadic
#862D87 #87862D #2D8786
tetradic
#862D87 #87592D #2E872D #2D5B87
square
#862D87 #87592D #2E872D #2D5B87
split-complementary
#862D87 #5B872D #2D8759
monochromatic
#2B0E2B #581E59 #862D87 #B43CB5 #CA63CB

Accessibility & contrast

On white

7.67
#862D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#862D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862D87
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862D87#FFFFFF#000000##FFFFFF
##862D871.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204C8A
Deuteranopia (green-blind)
#425785
Tritanopia (blue-blind)
#8A3956
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #862d87;
/* rgb */ color: rgb(134, 45, 135);
/* oklch */ color: oklch(46.4% 0.163 327.4);
Tailwind
colors: {
  custom: {
    50: '#ac6daa',
    500: '#862d87',
    950: '#000000',
  },
}
SCSS
$custom: #862d87;
$custom-light: #ac6daa;
$custom-dark: #000000;
JSON
{
  "hex": "#862d87",
  "rgb": {
    "r": 134,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 299.333,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.46423,
    "c": 0.16343,
    "h": 327.4
  },
  "luminance": 0.08694
}

Semantic roles & 50–950 ramp

primary
#862D87
secondary
#5FB25E
accent
#DA4E50
background
#FAF6FA
surface
#F5ECF4
border
#CFC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #862D87

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

Preview Lab → · Contrast checker → · Palette generator →

#862D87 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva