#862FA5#862FA5

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

Color values

HEX#862FA5
RGBrgb(134, 47, 165)
HSLhsl(284, 56%, 42%)
HSVhsv(284, 72%, 65%)
CMYKcmyk(18.8%, 71.5%, 0%, 35.3%)
CIE-LABlab(37.51, 54.53, -46.74)
CIE-LCHlch(37.51, 71.82, 319.40°)
OKLaboklab(48.54% 0.1346 -0.1315)
OKLCHoklch(48.54% 0.188 315.6)
XYZxyz(17.6385, 9.8186, 36.5561)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862FA5 #4EA52F
analogous
#4B2FA5 #862FA5 #A52F89
triadic
#862FA5 #A5862F #2FA586
tetradic
#862FA5 #A54B2F #4EA52F #2F89A5
square
#862FA5 #A54B2F #4EA52F #2F89A5
split-complementary
#862FA5 #89A52F #2FA54B
monochromatic
#391446 #5F2175 #862FA5 #A847CB #BE76D8

Accessibility & contrast

On white

7.09
#862FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #862FA5
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862FA5#FFFFFF#000000##FFFFFF
##862FA51.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A8
Deuteranopia (green-blind)
#2D5BA2
Tritanopia (blue-blind)
#844767
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #862fa5;
/* rgb */ color: rgb(134, 47, 165);
/* oklch */ color: oklch(48.5% 0.188 315.6);
Tailwind
colors: {
  custom: {
    50: '#ad6fc0',
    500: '#862fa5',
    950: '#000000',
  },
}
SCSS
$custom: #862fa5;
$custom-light: #ad6fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#862fa5",
  "rgb": {
    "r": 134,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 284.237,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.48535,
    "c": 0.18818,
    "h": 315.6
  },
  "luminance": 0.09818
}

Semantic roles & 50–950 ramp

primary
#862FA5
secondary
#85C070
accent
#DF4970
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #862FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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