#862FA6#862FA6

#862FA6 is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.6% C 0.189 H 315.3°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#862FA6
RGBrgb(134, 47, 166)
HSLhsl(284, 56%, 42%)
HSVhsv(284, 72%, 65%)
CMYKcmyk(19.3%, 71.7%, 0%, 34.9%)
CIE-LABlab(37.58, 54.73, -47.23)
CIE-LCHlch(37.58, 72.30, 319.21°)
OKLaboklab(48.6% 0.1345 -0.133)
OKLCHoklch(48.6% 0.189 315.3)
XYZxyz(17.7299, 9.8552, 37.0373)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862FA6 #4FA62F
analogous
#4B2FA6 #862FA6 #A62F8B
triadic
#862FA6 #A6862F #2FA686
tetradic
#862FA6 #A64B2F #4FA62F #2F8BA6
square
#862FA6 #A64B2F #4FA62F #2F8BA6
split-complementary
#862FA6 #8BA62F #2FA64B
monochromatic
#391447 #602176 #862FA6 #A847CB #BE77D8

Accessibility & contrast

On white

7.07
#862FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#862FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862FA6
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862FA6#FFFFFF#000000##FFFFFF
##862FA61.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A9
Deuteranopia (green-blind)
#2C5BA3
Tritanopia (blue-blind)
#844867
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #862fa6;
/* rgb */ color: rgb(134, 47, 166);
/* oklch */ color: oklch(48.6% 0.189 315.3);
Tailwind
colors: {
  custom: {
    50: '#ad70c1',
    500: '#862fa6',
    950: '#000000',
  },
}
SCSS
$custom: #862fa6;
$custom-light: #ad70c1;
$custom-dark: #000000;
JSON
{
  "hex": "#862fa6",
  "rgb": {
    "r": 134,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 283.866,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.48603,
    "c": 0.18913,
    "h": 315.3
  },
  "luminance": 0.09855
}

Semantic roles & 50–950 ramp

primary
#862FA6
secondary
#86C170
accent
#DF4971
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #862FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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