#862D8F#862D8F

#862D8F is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.9% C 0.170 H 323.9°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#862D8F
RGBrgb(134, 45, 143)
HSLhsl(294, 52%, 37%)
HSVhsv(294, 69%, 56%)
CMYKcmyk(6.3%, 68.5%, 0%, 43.9%)
CIE-LABlab(35.85, 51.02, -36.07)
CIE-LCHlch(35.85, 62.48, 324.74°)
OKLaboklab(46.9% 0.1378 -0.1003)
OKLCHoklch(46.9% 0.17 323.9)
XYZxyz(15.7274, 8.9292, 26.8764)
Luminance0.0893 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862D8F #368F2D
analogous
#552D8F #862D8F #8F2D67
triadic
#862D8F #8F862D #2D8F86
tetradic
#862D8F #8F552D #368F2D #2D678F
square
#862D8F #8F552D #368F2D #2D678F
split-complementary
#862D8F #678F2D #2D8F55
monochromatic
#2F1032 #5A1E60 #862D8F #B23CBE #C667CF

Accessibility & contrast

On white

7.54
#862D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#862D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862D8F
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862D8F#FFFFFF#000000##FFFFFF
##862D8F1.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154D92
Deuteranopia (green-blind)
#3E588D
Tritanopia (blue-blind)
#893D5A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #862d8f;
/* rgb */ color: rgb(134, 45, 143);
/* oklch */ color: oklch(46.9% 0.170 323.9);
Tailwind
colors: {
  custom: {
    50: '#ac6eb0',
    500: '#862d8f',
    950: '#000000',
  },
}
SCSS
$custom: #862d8f;
$custom-light: #ac6eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#862d8f",
  "rgb": {
    "r": 134,
    "g": 45,
    "b": 143
  },
  "hsl": {
    "h": 294.49,
    "s": 52.128,
    "l": 36.863
  },
  "oklch": {
    "l": 0.46899,
    "c": 0.17047,
    "h": 323.9
  },
  "luminance": 0.08928
}

Semantic roles & 50–950 ramp

primary
#862D8F
secondary
#6AB662
accent
#DC4C59
background
#FAF6FA
surface
#F5ECF5
border
#CFC7CF
text
#110810
muted
#807B7F

Preview Lab

Preview with #862D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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