#862EA7#862EA7

#862EA7 is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.6% C 0.191 H 315.1°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#862EA7
RGBrgb(134, 46, 167)
HSLhsl(284, 57%, 42%)
HSVhsv(284, 72%, 65%)
CMYKcmyk(19.8%, 72.5%, 0%, 34.5%)
CIE-LABlab(37.50, 55.35, -47.95)
CIE-LCHlch(37.50, 73.23, 319.09°)
OKLaboklab(48.57% 0.1354 -0.1351)
OKLCHoklch(48.57% 0.191 315.1)
XYZxyz(17.7824, 9.8130, 37.5091)
Luminance0.0981 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862EA7 #4FA72E
analogous
#492EA7 #862EA7 #A72E8C
triadic
#862EA7 #A7862E #2EA786
tetradic
#862EA7 #A7492E #4FA72E #2E8CA7
square
#862EA7 #A7492E #4FA72E #2E8CA7
split-complementary
#862EA7 #8CA72E #2EA749
monochromatic
#391447 #5F2177 #862EA7 #A846CC #BE76D9

Accessibility & contrast

On white

7.09
#862EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#862EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862EA7
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862EA7#FFFFFF#000000##FFFFFF
##862EA71.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AA
Deuteranopia (green-blind)
#2A5BA4
Tritanopia (blue-blind)
#834768
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #862ea7;
/* rgb */ color: rgb(134, 46, 167);
/* oklch */ color: oklch(48.6% 0.191 315.1);
Tailwind
colors: {
  custom: {
    50: '#ad6fc2',
    500: '#862ea7',
    950: '#000000',
  },
}
SCSS
$custom: #862ea7;
$custom-light: #ad6fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#862ea7",
  "rgb": {
    "r": 134,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 283.636,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4857,
    "c": 0.19127,
    "h": 315.1
  },
  "luminance": 0.09812
}

Semantic roles & 50–950 ramp

primary
#862EA7
secondary
#86C170
accent
#E04871
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #862EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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