#862D9D#862D9D

#862D9D is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.8% C 0.183 H 318.6°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#862D9D
RGBrgb(134, 45, 157)
HSLhsl(288, 55%, 40%)
HSVhsv(288, 71%, 62%)
CMYKcmyk(14.6%, 71.3%, 0%, 38.4%)
CIE-LABlab(36.71, 53.73, -43.22)
CIE-LCHlch(36.71, 68.95, 321.19°)
OKLaboklab(47.79% 0.1373 -0.1212)
OKLCHoklch(47.79% 0.183 318.6)
XYZxyz(16.8549, 9.3802, 32.8145)
Luminance0.0938 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862D9D #449D2D
analogous
#4E2D9D #862D9D #9D2D7C
triadic
#862D9D #9D862D #2D9D86
tetradic
#862D9D #9D4E2D #449D2D #2D7C9D
square
#862D9D #9D4E2D #449D2D #2D7C9D
split-complementary
#862D9D #7C9D2D #2D9D4E
monochromatic
#35123E #5D1F6D #862D9D #AC3FC8 #C16FD6

Accessibility & contrast

On white

7.30
#862D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#862D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862D9D
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862D9D#FFFFFF#000000##FFFFFF
##862D9D1.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A0
Deuteranopia (green-blind)
#33599A
Tritanopia (blue-blind)
#864362
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #862d9d;
/* rgb */ color: rgb(134, 45, 157);
/* oklch */ color: oklch(47.8% 0.183 318.6);
Tailwind
colors: {
  custom: {
    50: '#ad6eba',
    500: '#862d9d',
    950: '#000000',
  },
}
SCSS
$custom: #862d9d;
$custom-light: #ad6eba;
$custom-dark: #000000;
JSON
{
  "hex": "#862d9d",
  "rgb": {
    "r": 134,
    "g": 45,
    "b": 157
  },
  "hsl": {
    "h": 287.679,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.47791,
    "c": 0.18318,
    "h": 318.6
  },
  "luminance": 0.09379
}

Semantic roles & 50–950 ramp

primary
#862D9D
secondary
#7ABD69
accent
#DF4968
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #862D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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