#862D8B#862D8B

#862D8B is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.7% C 0.167 H 325.6°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#862D8B
RGBrgb(134, 45, 139)
HSLhsl(297, 51%, 36%)
HSVhsv(297, 68%, 55%)
CMYKcmyk(3.6%, 67.6%, 0%, 45.5%)
CIE-LABlab(35.62, 50.27, -33.98)
CIE-LCHlch(35.62, 60.68, 325.95°)
OKLaboklab(46.66% 0.1378 -0.0943)
OKLCHoklch(46.66% 0.167 325.6)
XYZxyz(15.4298, 8.8102, 25.3089)
Luminance0.0881 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862D8B #328B2D
analogous
#572D8B #862D8B #8B2D61
triadic
#862D8B #8B862D #2D8B86
tetradic
#862D8B #8B572D #328B2D #2D618B
square
#862D8B #8B572D #328B2D #2D618B
split-complementary
#862D8B #618B2D #2D8B57
monochromatic
#2D0F2F #591E5D #862D8B #B33CB9 #C865CD

Accessibility & contrast

On white

7.60
#862D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #862D8B
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862D8B#FFFFFF#000000##FFFFFF
##862D8B1.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #862d8b;
/* rgb */ color: rgb(134, 45, 139);
/* oklch */ color: oklch(46.7% 0.167 325.6);
Tailwind
colors: {
  custom: {
    50: '#ac6ead',
    500: '#862d8b',
    950: '#000000',
  },
}
SCSS
$custom: #862d8b;
$custom-light: #ac6ead;
$custom-dark: #000000;
JSON
{
  "hex": "#862d8b",
  "rgb": {
    "r": 134,
    "g": 45,
    "b": 139
  },
  "hsl": {
    "h": 296.809,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.46658,
    "c": 0.16692,
    "h": 325.6
  },
  "luminance": 0.08809
}

Semantic roles & 50–950 ramp

primary
#862D8B
secondary
#64B460
accent
#DB4D55
background
#FAF6FA
surface
#F5ECF4
border
#CFC7CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #862D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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