#862D8D#862D8D

#862D8D is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.8% C 0.169 H 324.8°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#862D8D
RGBrgb(134, 45, 141)
HSLhsl(296, 52%, 36%)
HSVhsv(296, 68%, 55%)
CMYKcmyk(5%, 68.1%, 0%, 44.7%)
CIE-LABlab(35.73, 50.65, -35.02)
CIE-LCHlch(35.73, 61.58, 325.33°)
OKLaboklab(46.78% 0.1378 -0.0973)
OKLCHoklch(46.78% 0.169 324.8)
XYZxyz(15.5772, 8.8691, 26.0856)
Luminance0.0887 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862D8D #348D2D
analogous
#562D8D #862D8D #8D2D64
triadic
#862D8D #8D862D #2D8D86
tetradic
#862D8D #8D562D #348D2D #2D648D
square
#862D8D #8D562D #348D2D #2D648D
split-complementary
#862D8D #648D2D #2D8D56
monochromatic
#2E0F30 #5A1E5F #862D8D #B23CBB #C766CE

Accessibility & contrast

On white

7.57
#862D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#862D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862D8D
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862D8D#FFFFFF#000000##FFFFFF
##862D8D1.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184D90
Deuteranopia (green-blind)
#3F588B
Tritanopia (blue-blind)
#893C59
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #862d8d;
/* rgb */ color: rgb(134, 45, 141);
/* oklch */ color: oklch(46.8% 0.169 324.8);
Tailwind
colors: {
  custom: {
    50: '#ac6eaf',
    500: '#862d8d',
    950: '#000000',
  },
}
SCSS
$custom: #862d8d;
$custom-light: #ac6eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#862d8d",
  "rgb": {
    "r": 134,
    "g": 45,
    "b": 141
  },
  "hsl": {
    "h": 295.625,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.46778,
    "c": 0.1687,
    "h": 324.8
  },
  "luminance": 0.08868
}

Semantic roles & 50–950 ramp

primary
#862D8D
secondary
#67B561
accent
#DB4D57
background
#FAF6FA
surface
#F5ECF4
border
#CFC7CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #862D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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