#862D7A#862D7A

#862D7A is a mid, vivid purple. Relative luminance 0.084; OKLCH L 45.7% C 0.152 H 333.5°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#862D7A
RGBrgb(134, 45, 122)
HSLhsl(308, 50%, 35%)
HSVhsv(308, 66%, 53%)
CMYKcmyk(0%, 66.4%, 9%, 47.5%)
CIE-LABlab(34.70, 47.27, -24.86)
CIE-LCHlch(34.70, 53.41, 332.26°)
OKLaboklab(45.7% 0.1365 -0.068)
OKLCHoklch(45.7% 0.152 333.5)
XYZxyz(14.2828, 8.3514, 19.2683)
Luminance0.0835 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862D7A #2D8639
analogous
#662D86 #862D7A #862D4D
triadic
#862D7A #7A862D #2D7A86
tetradic
#862D7A #86662D #2D8639 #2D4D86
square
#862D7A #86662D #2D8639 #2D4D86
split-complementary
#862D7A #4D862D #2D8666
monochromatic
#2A0E27 #581E50 #862D7A #B43CA4 #CB63BD

Accessibility & contrast

On white

7.87
#862D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#862D7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862D7A
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862D7A#FFFFFF#000000##FFFFFF
##862D7A1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B497C
Deuteranopia (green-blind)
#495678
Tritanopia (blue-blind)
#8C344F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #862d7a;
/* rgb */ color: rgb(134, 45, 122);
/* oklch */ color: oklch(45.7% 0.152 333.5);
Tailwind
colors: {
  custom: {
    50: '#ac6da0',
    500: '#862d7a',
    950: '#000000',
  },
}
SCSS
$custom: #862d7a;
$custom-light: #ac6da0;
$custom-dark: #000000;
JSON
{
  "hex": "#862d7a",
  "rgb": {
    "r": 134,
    "g": 45,
    "b": 122
  },
  "hsl": {
    "h": 308.09,
    "s": 49.721,
    "l": 35.098
  },
  "oklch": {
    "l": 0.45701,
    "c": 0.15249,
    "h": 333.5
  },
  "luminance": 0.0835
}

Semantic roles & 50–950 ramp

primary
#862D7A
secondary
#5EB169
accent
#D9614F
background
#FAF6F9
surface
#F5ECF2
border
#CFC7CC
text
#10070F
muted
#7F7A7E

Preview Lab

Preview with #862D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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