#862EA4#862EA4

#862EA4 is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.4% C 0.188 H 316.1°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#862EA4
RGBrgb(134, 46, 164)
HSLhsl(285, 56%, 41%)
HSVhsv(285, 72%, 64%)
CMYKcmyk(18.3%, 72%, 0%, 35.7%)
CIE-LABlab(37.30, 54.73, -46.48)
CIE-LCHlch(37.30, 71.80, 319.66°)
OKLaboklab(48.36% 0.1357 -0.1308)
OKLCHoklch(48.36% 0.188 316.1)
XYZxyz(17.5083, 9.7033, 36.0654)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862EA4 #4CA42E
analogous
#4B2EA4 #862EA4 #A42E87
triadic
#862EA4 #A4862E #2EA486
tetradic
#862EA4 #A44B2E #4CA42E #2E87A4
square
#862EA4 #A44B2E #4CA42E #2E87A4
split-complementary
#862EA4 #87A42E #2EA44B
monochromatic
#381344 #5F2174 #862EA4 #A945CB #BF74D8

Accessibility & contrast

On white

7.14
#862EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#862EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862EA4
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862EA4#FFFFFF#000000##FFFFFF
##862EA41.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A7
Deuteranopia (green-blind)
#2D5AA1
Tritanopia (blue-blind)
#844666
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #862ea4;
/* rgb */ color: rgb(134, 46, 164);
/* oklch */ color: oklch(48.4% 0.188 316.1);
Tailwind
colors: {
  custom: {
    50: '#ad6fc0',
    500: '#862ea4',
    950: '#000000',
  },
}
SCSS
$custom: #862ea4;
$custom-light: #ad6fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#862ea4",
  "rgb": {
    "r": 134,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 284.746,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.48364,
    "c": 0.18845,
    "h": 316.1
  },
  "luminance": 0.09703
}

Semantic roles & 50–950 ramp

primary
#862EA4
secondary
#83C06E
accent
#DF486F
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #862EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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