#862FA7#862FA7

#862FA7 is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.7% C 0.190 H 315.0°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#862FA7
RGBrgb(134, 47, 167)
HSLhsl(284, 56%, 42%)
HSVhsv(284, 72%, 65%)
CMYKcmyk(19.8%, 71.9%, 0%, 34.5%)
CIE-LABlab(37.65, 54.94, -47.72)
CIE-LCHlch(37.65, 72.77, 319.02°)
OKLaboklab(48.67% 0.1344 -0.1344)
OKLCHoklch(48.67% 0.19 315)
XYZxyz(17.8219, 9.8920, 37.5223)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862FA7 #50A72F
analogous
#4A2FA7 #862FA7 #A72F8C
triadic
#862FA7 #A7862F #2FA786
tetradic
#862FA7 #A74A2F #50A72F #2F8CA7
square
#862FA7 #A74A2F #50A72F #2F8CA7
split-complementary
#862FA7 #8CA72F #2FA74A
monochromatic
#391447 #602277 #862FA7 #A748CB #BE78D9

Accessibility & contrast

On white

7.05
#862FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#862FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862FA7
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862FA7#FFFFFF#000000##FFFFFF
##862FA71.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AA
Deuteranopia (green-blind)
#2B5BA4
Tritanopia (blue-blind)
#834868
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #862fa7;
/* rgb */ color: rgb(134, 47, 167);
/* oklch */ color: oklch(48.7% 0.190 315.0);
Tailwind
colors: {
  custom: {
    50: '#ad70c2',
    500: '#862fa7',
    950: '#000000',
  },
}
SCSS
$custom: #862fa7;
$custom-light: #ad70c2;
$custom-dark: #000000;
JSON
{
  "hex": "#862fa7",
  "rgb": {
    "r": 134,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 283.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.48672,
    "c": 0.19006,
    "h": 315
  },
  "luminance": 0.09891
}

Semantic roles & 50–950 ramp

primary
#862FA7
secondary
#87C171
accent
#DF4872
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #862FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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