#862EA1#862EA1

#862EA1 is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.2% C 0.186 H 317.1°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#862EA1
RGBrgb(134, 46, 161)
HSLhsl(286, 56%, 41%)
HSVhsv(286, 71%, 63%)
CMYKcmyk(16.8%, 71.4%, 0%, 36.9%)
CIE-LABlab(37.11, 54.12, -44.99)
CIE-LCHlch(37.11, 70.38, 320.27°)
OKLaboklab(48.16% 0.136 -0.1264)
OKLCHoklch(48.16% 0.186 317.1)
XYZxyz(17.2406, 9.5962, 34.6554)
Luminance0.0960 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862EA1 #49A12E
analogous
#4C2EA1 #862EA1 #A12E82
triadic
#862EA1 #A1862E #2EA186
tetradic
#862EA1 #A14C2E #49A12E #2E82A1
square
#862EA1 #A14C2E #49A12E #2E82A1
split-complementary
#862EA1 #82A12E #2EA14C
monochromatic
#371342 #5E2071 #862EA1 #AA43C9 #BF73D7

Accessibility & contrast

On white

7.19
#862EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#862EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862EA1
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862EA1#FFFFFF#000000##FFFFFF
##862EA11.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A4
Deuteranopia (green-blind)
#305A9E
Tritanopia (blue-blind)
#854564
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #862ea1;
/* rgb */ color: rgb(134, 46, 161);
/* oklch */ color: oklch(48.2% 0.186 317.1);
Tailwind
colors: {
  custom: {
    50: '#ad6fbd',
    500: '#862ea1',
    950: '#000000',
  },
}
SCSS
$custom: #862ea1;
$custom-light: #ad6fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#862ea1",
  "rgb": {
    "r": 134,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 285.913,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.4816,
    "c": 0.18565,
    "h": 317.1
  },
  "luminance": 0.09596
}

Semantic roles & 50–950 ramp

primary
#862EA1
secondary
#80BE6C
accent
#DF496C
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #862EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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