#862D7C#862D7C

#862D7C is a mid, vivid purple. Relative luminance 0.084; OKLCH L 45.8% C 0.154 H 332.5°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#862D7C
RGBrgb(134, 45, 124)
HSLhsl(307, 50%, 35%)
HSVhsv(307, 66%, 53%)
CMYKcmyk(0%, 66.4%, 7.5%, 47.5%)
CIE-LABlab(34.81, 47.61, -25.96)
CIE-LCHlch(34.81, 54.23, 331.40°)
OKLaboklab(45.81% 0.1368 -0.0711)
OKLCHoklch(45.81% 0.154 332.5)
XYZxyz(14.4080, 8.4014, 19.9277)
Luminance0.0840 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862D7C #2D8637
analogous
#642D86 #862D7C #862D4F
triadic
#862D7C #7C862D #2D7C86
tetradic
#862D7C #86642D #2D8637 #2D4F86
square
#862D7C #86642D #2D8637 #2D4F86
split-complementary
#862D7C #4F862D #2D8664
monochromatic
#2A0E27 #581E52 #862D7C #B43CA6 #CB63BF

Accessibility & contrast

On white

7.84
#862D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#862D7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862D7C
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862D7C#FFFFFF#000000##FFFFFF
##862D7C1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294A7E
Deuteranopia (green-blind)
#48567A
Tritanopia (blue-blind)
#8C3550
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #862d7c;
/* rgb */ color: rgb(134, 45, 124);
/* oklch */ color: oklch(45.8% 0.154 332.5);
Tailwind
colors: {
  custom: {
    50: '#ac6da2',
    500: '#862d7c',
    950: '#000000',
  },
}
SCSS
$custom: #862d7c;
$custom-light: #ac6da2;
$custom-dark: #000000;
JSON
{
  "hex": "#862d7c",
  "rgb": {
    "r": 134,
    "g": 45,
    "b": 124
  },
  "hsl": {
    "h": 306.742,
    "s": 49.721,
    "l": 35.098
  },
  "oklch": {
    "l": 0.45808,
    "c": 0.15412,
    "h": 332.5
  },
  "luminance": 0.084
}

Semantic roles & 50–950 ramp

primary
#862D7C
secondary
#5EB167
accent
#D95E4F
background
#FAF6FA
surface
#F5ECF3
border
#CFC7CD
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #862D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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