#862EA2#862EA2

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

Color values

HEX#862EA2
RGBrgb(134, 46, 162)
HSLhsl(286, 56%, 41%)
HSVhsv(286, 72%, 64%)
CMYKcmyk(17.3%, 71.6%, 0%, 36.5%)
CIE-LABlab(37.17, 54.32, -45.48)
CIE-LCHlch(37.17, 70.85, 320.06°)
OKLaboklab(48.23% 0.1359 -0.1279)
OKLCHoklch(48.23% 0.187 316.7)
XYZxyz(17.3291, 9.6317, 35.1217)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862EA2 #4AA22E
analogous
#4C2EA2 #862EA2 #A22E84
triadic
#862EA2 #A2862E #2EA286
tetradic
#862EA2 #A24C2E #4AA22E #2E84A2
square
#862EA2 #A24C2E #4AA22E #2E84A2
split-complementary
#862EA2 #84A22E #2EA24C
monochromatic
#371343 #5F2072 #862EA2 #A943CA #BF73D7

Accessibility & contrast

On white

7.18
#862EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #862EA2
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862EA2#FFFFFF#000000##FFFFFF
##862EA21.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A5
Deuteranopia (green-blind)
#2F5A9F
Tritanopia (blue-blind)
#844565
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #862ea2;
/* rgb */ color: rgb(134, 46, 162);
/* oklch */ color: oklch(48.2% 0.187 316.7);
Tailwind
colors: {
  custom: {
    50: '#ad6fbe',
    500: '#862ea2',
    950: '#000000',
  },
}
SCSS
$custom: #862ea2;
$custom-light: #ad6fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#862ea2",
  "rgb": {
    "r": 134,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 285.517,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.48228,
    "c": 0.18659,
    "h": 316.7
  },
  "luminance": 0.09631
}

Semantic roles & 50–950 ramp

primary
#862EA2
secondary
#81BF6D
accent
#DF496D
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #862EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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