#862EA3#862EA3

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

Color values

HEX#862EA3
RGBrgb(134, 46, 163)
HSLhsl(285, 56%, 41%)
HSVhsv(285, 72%, 64%)
CMYKcmyk(17.8%, 71.8%, 0%, 36.1%)
CIE-LABlab(37.24, 54.53, -45.98)
CIE-LCHlch(37.24, 71.33, 319.86°)
OKLaboklab(48.3% 0.1358 -0.1293)
OKLCHoklch(48.3% 0.188 316.4)
XYZxyz(17.4184, 9.6674, 35.5917)
Luminance0.0967 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862EA3 #4BA32E
analogous
#4B2EA3 #862EA3 #A32E85
triadic
#862EA3 #A3862E #2EA386
tetradic
#862EA3 #A34B2E #4BA32E #2E85A3
square
#862EA3 #A34B2E #4BA32E #2E85A3
split-complementary
#862EA3 #85A32E #2EA34B
monochromatic
#381344 #5F2173 #862EA3 #A944CA #BF74D8

Accessibility & contrast

On white

7.16
#862EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #862EA3
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862EA3#FFFFFF#000000##FFFFFF
##862EA31.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A6
Deuteranopia (green-blind)
#2E5AA0
Tritanopia (blue-blind)
#844665
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #862ea3;
/* rgb */ color: rgb(134, 46, 163);
/* oklch */ color: oklch(48.3% 0.188 316.4);
Tailwind
colors: {
  custom: {
    50: '#ad6fbf',
    500: '#862ea3',
    950: '#000000',
  },
}
SCSS
$custom: #862ea3;
$custom-light: #ad6fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#862ea3",
  "rgb": {
    "r": 134,
    "g": 46,
    "b": 163
  },
  "hsl": {
    "h": 285.128,
    "s": 55.981,
    "l": 40.98
  },
  "oklch": {
    "l": 0.48296,
    "c": 0.18752,
    "h": 316.4
  },
  "luminance": 0.09667
}

Semantic roles & 50–950 ramp

primary
#862EA3
secondary
#82BF6D
accent
#DF496E
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #862EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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