#862E9A#862E9A

#862E9A is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.7% C 0.179 H 319.6°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#862E9A
RGBrgb(134, 46, 154)
HSLhsl(289, 54%, 39%)
HSVhsv(289, 70%, 60%)
CMYKcmyk(13%, 70.1%, 0%, 39.6%)
CIE-LABlab(36.66, 52.72, -41.47)
CIE-LCHlch(36.66, 67.08, 321.81°)
OKLaboklab(47.7% 0.1364 -0.1161)
OKLCHoklch(47.7% 0.179 319.6)
XYZxyz(16.6405, 9.3562, 31.4950)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862E9A #429A2E
analogous
#502E9A #862E9A #9A2E78
triadic
#862E9A #9A862E #2E9A86
tetradic
#862E9A #9A502E #429A2E #2E789A
square
#862E9A #9A502E #429A2E #2E789A
split-complementary
#862E9A #789A2E #2E9A50
monochromatic
#34123C #5D206B #862E9A #AD3FC6 #C16FD4

Accessibility & contrast

On white

7.31
#862E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#862E9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862E9A
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862E9A#FFFFFF#000000##FFFFFF
##862E9A1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509D
Deuteranopia (green-blind)
#365997
Tritanopia (blue-blind)
#864260
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #862e9a;
/* rgb */ color: rgb(134, 46, 154);
/* oklch */ color: oklch(47.7% 0.179 319.6);
Tailwind
colors: {
  custom: {
    50: '#ad6fb8',
    500: '#862e9a',
    950: '#000000',
  },
}
SCSS
$custom: #862e9a;
$custom-light: #ad6fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#862e9a",
  "rgb": {
    "r": 134,
    "g": 46,
    "b": 154
  },
  "hsl": {
    "h": 288.889,
    "s": 54,
    "l": 39.216
  },
  "oklch": {
    "l": 0.47698,
    "c": 0.17916,
    "h": 319.6
  },
  "luminance": 0.09355
}

Semantic roles & 50–950 ramp

primary
#862E9A
secondary
#78BB69
accent
#DD4A66
background
#FAF6FB
surface
#F5ECF6
border
#CFC7D0
text
#110811
muted
#807B80

Preview Lab

Preview with #862E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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