#862A87#862A87

#862A87 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.1% C 0.167 H 327.4°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#862A87
RGBrgb(134, 42, 135)
HSLhsl(299, 53%, 35%)
HSVhsv(299, 69%, 53%)
CMYKcmyk(0.7%, 68.9%, 0%, 47.1%)
CIE-LABlab(34.95, 50.77, -32.56)
CIE-LCHlch(34.95, 60.32, 327.33°)
OKLaboklab(46.11% 0.1411 -0.0901)
OKLCHoklch(46.11% 0.167 327.4)
XYZxyz(15.0324, 8.4746, 23.7610)
Luminance0.0847 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862A87 #2B872A
analogous
#582A87 #862A87 #872A5A
triadic
#862A87 #87862A #2A8786
tetradic
#862A87 #87582A #2B872A #2A5A87
square
#862A87 #87582A #2B872A #2A5A87
split-complementary
#862A87 #5A872A #2A8758
monochromatic
#290D2A #581B58 #862A87 #B439B6 #CC5ECD

Accessibility & contrast

On white

7.79
#862A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#862A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862A87
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862A87#FFFFFF#000000##FFFFFF
##862A871.007.792.697.79
#FFFFFF7.791.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4B8A
Deuteranopia (green-blind)
#415685
Tritanopia (blue-blind)
#8A3755
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #862a87;
/* rgb */ color: rgb(134, 42, 135);
/* oklch */ color: oklch(46.1% 0.167 327.4);
Tailwind
colors: {
  custom: {
    50: '#ac6caa',
    500: '#862a87',
    950: '#000000',
  },
}
SCSS
$custom: #862a87;
$custom-light: #ac6caa;
$custom-dark: #000000;
JSON
{
  "hex": "#862a87",
  "rgb": {
    "r": 134,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 299.355,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46106,
    "c": 0.16741,
    "h": 327.4
  },
  "luminance": 0.08474
}

Semantic roles & 50–950 ramp

primary
#862A87
secondary
#5BB35A
accent
#DC4C4D
background
#FAF6FA
surface
#F5ECF4
border
#CFC7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #862A87

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

Preview Lab → · Contrast checker → · Palette generator →

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