#862EA6#862EA6

#862EA6 is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.5% C 0.190 H 315.4°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#862EA6
RGBrgb(134, 46, 166)
HSLhsl(284, 57%, 42%)
HSVhsv(284, 72%, 65%)
CMYKcmyk(19.3%, 72.3%, 0%, 34.9%)
CIE-LABlab(37.44, 55.14, -47.46)
CIE-LCHlch(37.44, 72.75, 319.28°)
OKLaboklab(48.5% 0.1355 -0.1337)
OKLCHoklch(48.5% 0.19 315.4)
XYZxyz(17.6903, 9.7762, 37.0241)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862EA6 #4EA62E
analogous
#4A2EA6 #862EA6 #A62E8A
triadic
#862EA6 #A6862E #2EA686
tetradic
#862EA6 #A64A2E #4EA62E #2E8AA6
square
#862EA6 #A64A2E #4EA62E #2E8AA6
split-complementary
#862EA6 #8AA62E #2EA64A
monochromatic
#391346 #5F2176 #862EA6 #A846CC #BE76D9

Accessibility & contrast

On white

7.11
#862EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#862EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862EA6
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862EA6#FFFFFF#000000##FFFFFF
##862EA61.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A9
Deuteranopia (green-blind)
#2B5AA3
Tritanopia (blue-blind)
#844767
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #862ea6;
/* rgb */ color: rgb(134, 46, 166);
/* oklch */ color: oklch(48.5% 0.190 315.4);
Tailwind
colors: {
  custom: {
    50: '#ad6fc1',
    500: '#862ea6',
    950: '#000000',
  },
}
SCSS
$custom: #862ea6;
$custom-light: #ad6fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#862ea6",
  "rgb": {
    "r": 134,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 284,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.48501,
    "c": 0.19033,
    "h": 315.4
  },
  "luminance": 0.09775
}

Semantic roles & 50–950 ramp

primary
#862EA6
secondary
#85C16F
accent
#E04870
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #862EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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