#862D7E#862D7E

#862D7E is a mid, vivid purple. Relative luminance 0.085; OKLCH L 45.9% C 0.156 H 331.5°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#862D7E
RGBrgb(134, 45, 126)
HSLhsl(305, 50%, 35%)
HSVhsv(305, 66%, 53%)
CMYKcmyk(0%, 66.4%, 6%, 47.5%)
CIE-LABlab(34.91, 47.95, -27.04)
CIE-LCHlch(34.91, 55.05, 330.58°)
OKLaboklab(45.92% 0.137 -0.0742)
OKLCHoklch(45.92% 0.156 331.5)
XYZxyz(14.5358, 8.4526, 20.6005)
Luminance0.0845 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862D7E #2D8635
analogous
#612D86 #862D7E #862D52
triadic
#862D7E #7E862D #2D7E86
tetradic
#862D7E #86612D #2D8635 #2D5286
square
#862D7E #86612D #2D8635 #2D5286
split-complementary
#862D7E #52862D #2D8661
monochromatic
#2A0E28 #581E53 #862D7E #B43CA9 #CB63C1

Accessibility & contrast

On white

7.81
#862D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #862D7E
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862D7E#FFFFFF#000000##FFFFFF
##862D7E1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284A80
Deuteranopia (green-blind)
#47577C
Tritanopia (blue-blind)
#8B3651
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #862d7e;
/* rgb */ color: rgb(134, 45, 126);
/* oklch */ color: oklch(45.9% 0.156 331.5);
Tailwind
colors: {
  custom: {
    50: '#ac6da3',
    500: '#862d7e',
    950: '#000000',
  },
}
SCSS
$custom: #862d7e;
$custom-light: #ac6da3;
$custom-dark: #000000;
JSON
{
  "hex": "#862d7e",
  "rgb": {
    "r": 134,
    "g": 45,
    "b": 126
  },
  "hsl": {
    "h": 305.393,
    "s": 49.721,
    "l": 35.098
  },
  "oklch": {
    "l": 0.45916,
    "c": 0.15577,
    "h": 331.5
  },
  "luminance": 0.08451
}

Semantic roles & 50–950 ramp

primary
#862D7E
secondary
#5EB165
accent
#D95B4F
background
#FAF6FA
surface
#F5ECF4
border
#CFC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #862D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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