#862D7D#862D7D

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

Color values

HEX#862D7D
RGBrgb(134, 45, 125)
HSLhsl(306, 50%, 35%)
HSVhsv(306, 66%, 53%)
CMYKcmyk(0%, 66.4%, 6.7%, 47.5%)
CIE-LABlab(34.86, 47.78, -26.50)
CIE-LCHlch(34.86, 54.64, 330.99°)
OKLaboklab(45.86% 0.1369 -0.0727)
OKLCHoklch(45.86% 0.155 332)
XYZxyz(14.4716, 8.4269, 20.2624)
Luminance0.0843 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862D7D #2D8636
analogous
#622D86 #862D7D #862D51
triadic
#862D7D #7D862D #2D7D86
tetradic
#862D7D #86622D #2D8636 #2D5186
square
#862D7D #86622D #2D8636 #2D5186
split-complementary
#862D7D #51862D #2D8662
monochromatic
#2A0E28 #581E52 #862D7D #B43CA8 #CB63C0

Accessibility & contrast

On white

7.82
#862D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #862D7D
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862D7D#FFFFFF#000000##FFFFFF
##862D7D1.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294A7F
Deuteranopia (green-blind)
#47567B
Tritanopia (blue-blind)
#8C3551
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #862d7d;
/* rgb */ color: rgb(134, 45, 125);
/* oklch */ color: oklch(45.9% 0.155 332.0);
Tailwind
colors: {
  custom: {
    50: '#ac6da3',
    500: '#862d7d',
    950: '#000000',
  },
}
SCSS
$custom: #862d7d;
$custom-light: #ac6da3;
$custom-dark: #000000;
JSON
{
  "hex": "#862d7d",
  "rgb": {
    "r": 134,
    "g": 45,
    "b": 125
  },
  "hsl": {
    "h": 306.067,
    "s": 49.721,
    "l": 35.098
  },
  "oklch": {
    "l": 0.45862,
    "c": 0.15494,
    "h": 332
  },
  "luminance": 0.08426
}

Semantic roles & 50–950 ramp

primary
#862D7D
secondary
#5EB166
accent
#D95D4F
background
#FAF6FA
surface
#F5ECF3
border
#CFC7CD
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #862D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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