#862B81#862B81

#862B81 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 45.9% C 0.161 H 330.1°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#862B81
RGBrgb(134, 43, 129)
HSLhsl(303, 51%, 35%)
HSVhsv(303, 68%, 53%)
CMYKcmyk(0%, 67.9%, 3.7%, 47.5%)
CIE-LABlab(34.77, 49.31, -29.13)
CIE-LCHlch(34.77, 57.27, 329.42°)
OKLaboklab(45.87% 0.1396 -0.0802)
OKLCHoklch(45.87% 0.161 330.1)
XYZxyz(14.6578, 8.3821, 21.6105)
Luminance0.0838 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862B81 #2B8630
analogous
#5E2B86 #862B81 #862B53
triadic
#862B81 #81862B #2B8186
tetradic
#862B81 #865E2B #2B8630 #2B5386
square
#862B81 #865E2B #2B8630 #2B5386
split-complementary
#862B81 #53862B #2B865E
monochromatic
#290D28 #581C54 #862B81 #B43AAE #CC60C6

Accessibility & contrast

On white

7.85
#862B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#862B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862B81
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862B81#FFFFFF#000000##FFFFFF
##862B811.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234A84
Deuteranopia (green-blind)
#44567F
Tritanopia (blue-blind)
#8B3552
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #862b81;
/* rgb */ color: rgb(134, 43, 129);
/* oklch */ color: oklch(45.9% 0.161 330.1);
Tailwind
colors: {
  custom: {
    50: '#ac6ca6',
    500: '#862b81',
    950: '#000000',
  },
}
SCSS
$custom: #862b81;
$custom-light: #ac6ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#862b81",
  "rgb": {
    "r": 134,
    "g": 43,
    "b": 129
  },
  "hsl": {
    "h": 303.297,
    "s": 51.412,
    "l": 34.706
  },
  "oklch": {
    "l": 0.45865,
    "c": 0.16103,
    "h": 330.1
  },
  "luminance": 0.08381
}

Semantic roles & 50–950 ramp

primary
#862B81
secondary
#5BB260
accent
#DB554D
background
#FAF6FA
surface
#F5ECF4
border
#CFC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #862B81

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

Preview Lab → · Contrast checker → · Palette generator →

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