#862D8A#862D8A

#862D8A is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.6% C 0.166 H 326.0°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#862D8A
RGBrgb(134, 45, 138)
HSLhsl(297, 51%, 36%)
HSVhsv(297, 67%, 54%)
CMYKcmyk(2.9%, 67.4%, 0%, 45.9%)
CIE-LABlab(35.56, 50.09, -33.45)
CIE-LCHlch(35.56, 60.23, 326.26°)
OKLaboklab(46.6% 0.1377 -0.0927)
OKLCHoklch(46.6% 0.166 326)
XYZxyz(15.3570, 8.7811, 24.9259)
Luminance0.0878 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862D8A #318A2D
analogous
#572D8A #862D8A #8A2D5F
triadic
#862D8A #8A862D #2D8A86
tetradic
#862D8A #8A572D #318A2D #2D5F8A
square
#862D8A #8A572D #318A2D #2D5F8A
split-complementary
#862D8A #5F8A2D #2D8A57
monochromatic
#2C0F2E #591E5C #862D8A #B33CB8 #C865CD

Accessibility & contrast

On white

7.62
#862D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#862D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862D8A
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862D8A#FFFFFF#000000##FFFFFF
##862D8A1.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4C8D
Deuteranopia (green-blind)
#415888
Tritanopia (blue-blind)
#893B58
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #862d8a;
/* rgb */ color: rgb(134, 45, 138);
/* oklch */ color: oklch(46.6% 0.166 326.0);
Tailwind
colors: {
  custom: {
    50: '#ac6dac',
    500: '#862d8a',
    950: '#000000',
  },
}
SCSS
$custom: #862d8a;
$custom-light: #ac6dac;
$custom-dark: #000000;
JSON
{
  "hex": "#862d8a",
  "rgb": {
    "r": 134,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 297.419,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.46599,
    "c": 0.16604,
    "h": 326
  },
  "luminance": 0.0878
}

Semantic roles & 50–950 ramp

primary
#862D8A
secondary
#63B360
accent
#DA4D54
background
#FAF6FA
surface
#F5ECF4
border
#CFC7CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #862D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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