#862AA1#862AA1

#862AA1 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.8% C 0.190 H 317.3°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#862AA1
RGBrgb(134, 42, 161)
HSLhsl(286, 59%, 40%)
HSVhsv(286, 74%, 63%)
CMYKcmyk(16.8%, 73.9%, 0%, 36.9%)
CIE-LABlab(36.55, 55.70, -45.88)
CIE-LCHlch(36.55, 72.16, 320.52°)
OKLaboklab(47.77% 0.14 -0.129)
OKLCHoklch(47.77% 0.19 317.3)
XYZxyz(17.0916, 9.2982, 34.6057)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862AA1 #45A12A
analogous
#4B2AA1 #862AA1 #A12A80
triadic
#862AA1 #A1862A #2AA186
tetradic
#862AA1 #A14B2A #45A12A #2A80A1
square
#862AA1 #A14B2A #45A12A #2A80A1
split-complementary
#862AA1 #80A12A #2AA14B
monochromatic
#351140 #5E1D70 #862AA1 #AB3CCC #C06DD9

Accessibility & contrast

On white

7.34
#862AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#862AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862AA1
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862AA1#FFFFFF#000000##FFFFFF
##862AA11.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A4
Deuteranopia (green-blind)
#2D599E
Tritanopia (blue-blind)
#854363
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #862aa1;
/* rgb */ color: rgb(134, 42, 161);
/* oklch */ color: oklch(47.8% 0.190 317.3);
Tailwind
colors: {
  custom: {
    50: '#ad6dbd',
    500: '#862aa1',
    950: '#000000',
  },
}
SCSS
$custom: #862aa1;
$custom-light: #ad6dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#862aa1",
  "rgb": {
    "r": 134,
    "g": 42,
    "b": 161
  },
  "hsl": {
    "h": 286.387,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.47765,
    "c": 0.1904,
    "h": 317.3
  },
  "luminance": 0.09297
}

Semantic roles & 50–950 ramp

primary
#862AA1
secondary
#7BC067
accent
#E24669
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #862AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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