#862E87#862E87

#862E87 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.5% C 0.162 H 327.3°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#862E87
RGBrgb(134, 46, 135)
HSLhsl(299, 49%, 35%)
HSVhsv(299, 66%, 53%)
CMYKcmyk(0.7%, 65.9%, 0%, 47.1%)
CIE-LABlab(35.54, 49.12, -31.63)
CIE-LCHlch(35.54, 58.42, 327.22°)
OKLaboklab(46.53% 0.1364 -0.0874)
OKLCHoklch(46.53% 0.162 327.3)
XYZxyz(15.1815, 8.7726, 23.8106)
Luminance0.0877 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862E87 #2F872E
analogous
#592E87 #862E87 #872E5B
triadic
#862E87 #87862E #2E8786
tetradic
#862E87 #87592E #2F872E #2E5B87
square
#862E87 #87592E #2F872E #2E5B87
split-complementary
#862E87 #5B872E #2E8759
monochromatic
#2B0F2C #591E59 #862E87 #B33EB5 #C965CA

Accessibility & contrast

On white

7.62
#862E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#862E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862E87
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862E87#FFFFFF#000000##FFFFFF
##862E871.007.622.757.62
#FFFFFF7.621.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214C8A
Deuteranopia (green-blind)
#435885
Tritanopia (blue-blind)
#8A3A56
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #862e87;
/* rgb */ color: rgb(134, 46, 135);
/* oklch */ color: oklch(46.5% 0.162 327.3);
Tailwind
colors: {
  custom: {
    50: '#ac6eaa',
    500: '#862e87',
    950: '#000000',
  },
}
SCSS
$custom: #862e87;
$custom-light: #ac6eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#862e87",
  "rgb": {
    "r": 134,
    "g": 46,
    "b": 135
  },
  "hsl": {
    "h": 299.326,
    "s": 49.171,
    "l": 35.49
  },
  "oklch": {
    "l": 0.46532,
    "c": 0.16204,
    "h": 327.3
  },
  "luminance": 0.08772
}

Semantic roles & 50–950 ramp

primary
#862E87
secondary
#60B160
accent
#D94F51
background
#FAF6FA
surface
#F5ECF4
border
#CFC7CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #862E87

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

Preview Lab → · Contrast checker → · Palette generator →

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