#862AA2#862AA2

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

Color values

HEX#862AA2
RGBrgb(134, 42, 162)
HSLhsl(286, 59%, 40%)
HSVhsv(286, 74%, 64%)
CMYKcmyk(17.3%, 74.1%, 0%, 36.5%)
CIE-LABlab(36.62, 55.90, -46.38)
CIE-LCHlch(36.62, 72.63, 320.32°)
OKLaboklab(47.83% 0.1399 -0.1304)
OKLCHoklch(47.83% 0.191 317)
XYZxyz(17.1801, 9.3336, 35.0720)
Luminance0.0933 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862AA2 #46A22A
analogous
#4A2AA2 #862AA2 #A22A82
triadic
#862AA2 #A2862A #2AA286
tetradic
#862AA2 #A24A2A #46A22A #2A82A2
square
#862AA2 #A24A2A #46A22A #2A82A2
split-complementary
#862AA2 #82A22A #2AA24A
monochromatic
#361141 #5E1D71 #862AA2 #AB3DCD #C06DD9

Accessibility & contrast

On white

7.33
#862AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#862AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862AA2
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862AA2#FFFFFF#000000##FFFFFF
##862AA21.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#2C599F
Tritanopia (blue-blind)
#854364
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #862aa2;
/* rgb */ color: rgb(134, 42, 162);
/* oklch */ color: oklch(47.8% 0.191 317.0);
Tailwind
colors: {
  custom: {
    50: '#ad6dbe',
    500: '#862aa2',
    950: '#000000',
  },
}
SCSS
$custom: #862aa2;
$custom-light: #ad6dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#862aa2",
  "rgb": {
    "r": 134,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 286,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.47833,
    "c": 0.19131,
    "h": 317
  },
  "luminance": 0.09333
}

Semantic roles & 50–950 ramp

primary
#862AA2
secondary
#7CC068
accent
#E2466A
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #862AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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