#862AAA#862AAA

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

Color values

HEX#862AAA
RGBrgb(134, 42, 170)
HSLhsl(283, 60%, 42%)
HSVhsv(283, 75%, 67%)
CMYKcmyk(21.2%, 75.3%, 0%, 33.3%)
CIE-LABlab(37.16, 57.52, -50.30)
CIE-LCHlch(37.16, 76.40, 318.83°)
OKLaboklab(48.39% 0.1389 -0.142)
OKLCHoklch(48.39% 0.199 314.4)
XYZxyz(17.9140, 9.6272, 38.9370)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862AAA #4EAA2A
analogous
#462AAA #862AAA #AA2A8E
triadic
#862AAA #AA862A #2AAA86
tetradic
#862AAA #AA462A #4EAA2A #2A8EAA
square
#862AAA #AA462A #4EAA2A #2A8EAA
split-complementary
#862AAA #8EAA2A #2AAA46
monochromatic
#391248 #5F1E79 #862AAA #A841D0 #BE72DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##862AAA#FFFFFF#000000##FFFFFF
##862AAA1.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)
#0052AE
Deuteranopia (green-blind)
#225AA7
Tritanopia (blue-blind)
#834768
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #862aaa;
/* rgb */ color: rgb(134, 42, 170);
/* oklch */ color: oklch(48.4% 0.199 314.4);
Tailwind
colors: {
  custom: {
    50: '#ad6dc4',
    500: '#862aaa',
    950: '#000000',
  },
}
SCSS
$custom: #862aaa;
$custom-light: #ad6dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#862aaa",
  "rgb": {
    "r": 134,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 283.125,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.48394,
    "c": 0.19861,
    "h": 314.4
  },
  "luminance": 0.09627
}

Semantic roles & 50–950 ramp

primary
#862AAA
secondary
#85C36C
accent
#E44471
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #862AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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