#862D79#862D79

#862D79 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.6% C 0.152 H 334.0°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#862D79
RGBrgb(134, 45, 121)
HSLhsl(309, 50%, 35%)
HSVhsv(309, 66%, 53%)
CMYKcmyk(0%, 66.4%, 9.7%, 47.5%)
CIE-LABlab(34.65, 47.10, -24.32)
CIE-LCHlch(34.65, 53.01, 332.70°)
OKLaboklab(45.65% 0.1364 -0.0664)
OKLCHoklch(45.65% 0.152 334)
XYZxyz(14.2212, 8.3267, 18.9437)
Luminance0.0833 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862D79 #2D863A
analogous
#662D86 #862D79 #862D4C
triadic
#862D79 #79862D #2D7986
tetradic
#862D79 #86662D #2D863A #2D4C86
square
#862D79 #86662D #2D863A #2D4C86
split-complementary
#862D79 #4C862D #2D8666
monochromatic
#2A0E26 #581E50 #862D79 #B43CA2 #CB63BB

Accessibility & contrast

On white

7.88
#862D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #862D79
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862D79#FFFFFF#000000##FFFFFF
##862D791.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C497B
Deuteranopia (green-blind)
#495677
Tritanopia (blue-blind)
#8C344F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #862d79;
/* rgb */ color: rgb(134, 45, 121);
/* oklch */ color: oklch(45.6% 0.152 334.0);
Tailwind
colors: {
  custom: {
    50: '#ac6da0',
    500: '#862d79',
    950: '#000000',
  },
}
SCSS
$custom: #862d79;
$custom-light: #ac6da0;
$custom-dark: #000000;
JSON
{
  "hex": "#862d79",
  "rgb": {
    "r": 134,
    "g": 45,
    "b": 121
  },
  "hsl": {
    "h": 308.764,
    "s": 49.721,
    "l": 35.098
  },
  "oklch": {
    "l": 0.45649,
    "c": 0.15168,
    "h": 334
  },
  "luminance": 0.08326
}

Semantic roles & 50–950 ramp

primary
#862D79
secondary
#5EB16A
accent
#D9634F
background
#FAF6F9
surface
#F5ECF2
border
#CFC7CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #862D79

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

Preview Lab → · Contrast checker → · Palette generator →

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