#862D81#862D81

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

Color values

HEX#862D81
RGBrgb(134, 45, 129)
HSLhsl(303, 50%, 35%)
HSVhsv(303, 66%, 53%)
CMYKcmyk(0%, 66.4%, 3.7%, 47.5%)
CIE-LABlab(35.07, 48.48, -28.66)
CIE-LCHlch(35.07, 56.32, 329.40°)
OKLaboklab(46.08% 0.1372 -0.0789)
OKLCHoklch(46.08% 0.158 330.1)
XYZxyz(14.7323, 8.5311, 21.6354)
Luminance0.0853 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862D81 #2D8632
analogous
#5F2D86 #862D81 #862D54
triadic
#862D81 #81862D #2D8186
tetradic
#862D81 #865F2D #2D8632 #2D5486
square
#862D81 #865F2D #2D8632 #2D5486
split-complementary
#862D81 #54862D #2D865F
monochromatic
#2A0E29 #581E55 #862D81 #B43CAD #CB63C5

Accessibility & contrast

On white

7.76
#862D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #862D81
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862D81#FFFFFF#000000##FFFFFF
##862D811.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264B83
Deuteranopia (green-blind)
#45577F
Tritanopia (blue-blind)
#8B3753
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #862d81;
/* rgb */ color: rgb(134, 45, 129);
/* oklch */ color: oklch(46.1% 0.158 330.1);
Tailwind
colors: {
  custom: {
    50: '#ac6da6',
    500: '#862d81',
    950: '#000000',
  },
}
SCSS
$custom: #862d81;
$custom-light: #ac6da6;
$custom-dark: #000000;
JSON
{
  "hex": "#862d81",
  "rgb": {
    "r": 134,
    "g": 45,
    "b": 129
  },
  "hsl": {
    "h": 303.371,
    "s": 49.721,
    "l": 35.098
  },
  "oklch": {
    "l": 0.46081,
    "c": 0.15828,
    "h": 330.1
  },
  "luminance": 0.0853
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #862D81

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

Preview Lab → · Contrast checker → · Palette generator →

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