#862D82#862D82

#862D82 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.1% C 0.159 H 329.6°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#862D82
RGBrgb(134, 45, 130)
HSLhsl(303, 50%, 35%)
HSVhsv(303, 66%, 53%)
CMYKcmyk(0%, 66.4%, 3%, 47.5%)
CIE-LABlab(35.12, 48.65, -29.20)
CIE-LCHlch(35.12, 56.74, 329.03°)
OKLaboklab(46.14% 0.1373 -0.0804)
OKLCHoklch(46.14% 0.159 329.6)
XYZxyz(14.7991, 8.5579, 21.9871)
Luminance0.0856 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862D82 #2D8631
analogous
#5E2D86 #862D82 #862D55
triadic
#862D82 #82862D #2D8286
tetradic
#862D82 #865E2D #2D8631 #2D5586
square
#862D82 #865E2D #2D8631 #2D5586
split-complementary
#862D82 #55862D #2D865E
monochromatic
#2A0E29 #581E56 #862D82 #B43CAE #CB63C6

Accessibility & contrast

On white

7.75
#862D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#862D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862D82
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862D82#FFFFFF#000000##FFFFFF
##862D821.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254B85
Deuteranopia (green-blind)
#455780
Tritanopia (blue-blind)
#8B3753
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #862d82;
/* rgb */ color: rgb(134, 45, 130);
/* oklch */ color: oklch(46.1% 0.159 329.6);
Tailwind
colors: {
  custom: {
    50: '#ac6da6',
    500: '#862d82',
    950: '#000000',
  },
}
SCSS
$custom: #862d82;
$custom-light: #ac6da6;
$custom-dark: #000000;
JSON
{
  "hex": "#862d82",
  "rgb": {
    "r": 134,
    "g": 45,
    "b": 130
  },
  "hsl": {
    "h": 302.697,
    "s": 49.721,
    "l": 35.098
  },
  "oklch": {
    "l": 0.46137,
    "c": 0.15913,
    "h": 329.6
  },
  "luminance": 0.08557
}

Semantic roles & 50–950 ramp

primary
#862D82
secondary
#5EB162
accent
#D9554F
background
#FAF6FA
surface
#F5ECF4
border
#CFC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #862D82

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

Preview Lab → · Contrast checker → · Palette generator →

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