#862D7F#862D7F

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

Color values

HEX#862D7F
RGBrgb(134, 45, 127)
HSLhsl(305, 50%, 35%)
HSVhsv(305, 66%, 53%)
CMYKcmyk(0%, 66.4%, 5.2%, 47.5%)
CIE-LABlab(34.96, 48.13, -27.58)
CIE-LCHlch(34.96, 55.47, 330.18°)
OKLaboklab(45.97% 0.1371 -0.0758)
OKLCHoklch(45.97% 0.157 331.1)
XYZxyz(14.6006, 8.4785, 20.9421)
Luminance0.0848 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862D7F #2D8634
analogous
#602D86 #862D7F #862D53
triadic
#862D7F #7F862D #2D7F86
tetradic
#862D7F #86602D #2D8634 #2D5386
square
#862D7F #86602D #2D8634 #2D5386
split-complementary
#862D7F #53862D #2D8660
monochromatic
#2A0E28 #581E54 #862D7F #B43CAA #CB63C2

Accessibility & contrast

On white

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

On black

2.70
#862D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##862D7F#FFFFFF#000000##FFFFFF
##862D7F1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274A81
Deuteranopia (green-blind)
#46577D
Tritanopia (blue-blind)
#8B3652
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #862d7f;
/* rgb */ color: rgb(134, 45, 127);
/* oklch */ color: oklch(46.0% 0.157 331.1);
Tailwind
colors: {
  custom: {
    50: '#ac6da4',
    500: '#862d7f',
    950: '#000000',
  },
}
SCSS
$custom: #862d7f;
$custom-light: #ac6da4;
$custom-dark: #000000;
JSON
{
  "hex": "#862d7f",
  "rgb": {
    "r": 134,
    "g": 45,
    "b": 127
  },
  "hsl": {
    "h": 304.719,
    "s": 49.721,
    "l": 35.098
  },
  "oklch": {
    "l": 0.45971,
    "c": 0.1566,
    "h": 331.1
  },
  "luminance": 0.08477
}

Semantic roles & 50–950 ramp

primary
#862D7F
secondary
#5EB164
accent
#D9594F
background
#FAF6FA
surface
#F5ECF4
border
#CFC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #862D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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