#862AAB#862AAB

#862AAB is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.5% C 0.200 H 314.1°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#862AAB
RGBrgb(134, 42, 171)
HSLhsl(283, 61%, 42%)
HSVhsv(283, 75%, 67%)
CMYKcmyk(21.6%, 75.4%, 0%, 32.9%)
CIE-LABlab(37.23, 57.72, -50.78)
CIE-LCHlch(37.23, 76.88, 318.66°)
OKLaboklab(48.47% 0.1388 -0.1434)
OKLCHoklch(48.47% 0.2 314.1)
XYZxyz(18.0089, 9.6651, 39.4371)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862AAB #4FAB2A
analogous
#462AAB #862AAB #AB2A90
triadic
#862AAB #AB862A #2AAB86
tetradic
#862AAB #AB462A #4FAB2A #2A90AB
square
#862AAB #AB462A #4FAB2A #2A90AB
split-complementary
#862AAB #90AB2A #2AAB46
monochromatic
#391249 #5F1E7A #862AAB #A842D1 #BE73DD

Accessibility & contrast

On white

7.16
#862AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #862AAB
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862AAB#FFFFFF#000000##FFFFFF
##862AAB1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AF
Deuteranopia (green-blind)
#205AA8
Tritanopia (blue-blind)
#824769
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #862aab;
/* rgb */ color: rgb(134, 42, 171);
/* oklch */ color: oklch(48.5% 0.200 314.1);
Tailwind
colors: {
  custom: {
    50: '#ad6dc5',
    500: '#862aab',
    950: '#000000',
  },
}
SCSS
$custom: #862aab;
$custom-light: #ad6dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#862aab",
  "rgb": {
    "r": 134,
    "g": 42,
    "b": 171
  },
  "hsl": {
    "h": 282.791,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.48465,
    "c": 0.19952,
    "h": 314.1
  },
  "luminance": 0.09665
}

Semantic roles & 50–950 ramp

primary
#862AAB
secondary
#86C46D
accent
#E44472
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #862AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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