#862FA4#862FA4

#862FA4 is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.5% C 0.187 H 316.0°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#862FA4
RGBrgb(134, 47, 164)
HSLhsl(285, 55%, 41%)
HSVhsv(285, 71%, 64%)
CMYKcmyk(18.3%, 71.3%, 0%, 35.7%)
CIE-LABlab(37.45, 54.32, -46.24)
CIE-LCHlch(37.45, 71.34, 319.59°)
OKLaboklab(48.47% 0.1347 -0.1301)
OKLCHoklch(48.47% 0.187 316)
XYZxyz(17.5478, 9.7824, 36.0786)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862FA4 #4DA42F
analogous
#4C2FA4 #862FA4 #A42F88
triadic
#862FA4 #A4862F #2FA486
tetradic
#862FA4 #A44C2F #4DA42F #2F88A4
square
#862FA4 #A44C2F #4DA42F #2F88A4
split-complementary
#862FA4 #88A42F #2FA44C
monochromatic
#381445 #5F2174 #862FA4 #A846CA #BF76D8

Accessibility & contrast

On white

7.10
#862FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #862FA4
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862FA4#FFFFFF#000000##FFFFFF
##862FA41.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #862fa4;
/* rgb */ color: rgb(134, 47, 164);
/* oklch */ color: oklch(48.5% 0.187 316.0);
Tailwind
colors: {
  custom: {
    50: '#ad6fc0',
    500: '#862fa4',
    950: '#000000',
  },
}
SCSS
$custom: #862fa4;
$custom-light: #ad6fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#862fa4",
  "rgb": {
    "r": 134,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 284.615,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.48467,
    "c": 0.18723,
    "h": 316
  },
  "luminance": 0.09782
}

Semantic roles & 50–950 ramp

primary
#862FA4
secondary
#84C06F
accent
#DF496F
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #862FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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