#862DA4#862DA4

#862DA4 is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.3% C 0.190 H 316.1°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#862DA4
RGBrgb(134, 45, 164)
HSLhsl(285, 57%, 41%)
HSVhsv(285, 73%, 64%)
CMYKcmyk(18.3%, 72.6%, 0%, 35.7%)
CIE-LABlab(37.16, 55.13, -46.70)
CIE-LCHlch(37.16, 72.26, 319.73°)
OKLaboklab(48.26% 0.1367 -0.1314)
OKLCHoklch(48.26% 0.19 316.1)
XYZxyz(17.4697, 9.6261, 36.0526)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862DA4 #4BA42D
analogous
#4A2DA4 #862DA4 #A42D86
triadic
#862DA4 #A4862D #2DA486
tetradic
#862DA4 #A44A2D #4BA42D #2D86A4
square
#862DA4 #A44A2D #4BA42D #2D86A4
split-complementary
#862DA4 #86A42D #2DA44A
monochromatic
#381344 #5F2074 #862DA4 #A943CB #BF73D9

Accessibility & contrast

On white

7.18
#862DA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#862DA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862DA4
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862DA4#FFFFFF#000000##FFFFFF
##862DA41.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A7
Deuteranopia (green-blind)
#2C5AA1
Tritanopia (blue-blind)
#844666
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #862da4;
/* rgb */ color: rgb(134, 45, 164);
/* oklch */ color: oklch(48.3% 0.190 316.1);
Tailwind
colors: {
  custom: {
    50: '#ad6ec0',
    500: '#862da4',
    950: '#000000',
  },
}
SCSS
$custom: #862da4;
$custom-light: #ad6ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#862da4",
  "rgb": {
    "r": 134,
    "g": 45,
    "b": 164
  },
  "hsl": {
    "h": 284.874,
    "s": 56.938,
    "l": 40.98
  },
  "oklch": {
    "l": 0.48263,
    "c": 0.18965,
    "h": 316.1
  },
  "luminance": 0.09625
}

Semantic roles & 50–950 ramp

primary
#862DA4
secondary
#82C06D
accent
#E0486E
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #862DA4

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

Preview Lab → · Contrast checker → · Palette generator →

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