#862AA5#862AA5

#862AA5 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 48.0% C 0.194 H 316.0°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#862AA5
RGBrgb(134, 42, 165)
HSLhsl(285, 59%, 41%)
HSVhsv(285, 75%, 65%)
CMYKcmyk(18.8%, 74.5%, 0%, 35.3%)
CIE-LABlab(36.82, 56.50, -47.85)
CIE-LCHlch(36.82, 74.04, 319.74°)
OKLaboklab(48.04% 0.1396 -0.1348)
OKLCHoklch(48.04% 0.194 316)
XYZxyz(17.4499, 9.4416, 36.4932)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862AA5 #49A52A
analogous
#482AA5 #862AA5 #A52A86
triadic
#862AA5 #A5862A #2AA586
tetradic
#862AA5 #A5482A #49A52A #2A86A5
square
#862AA5 #A5482A #49A52A #2A86A5
split-complementary
#862AA5 #86A52A #2AA548
monochromatic
#371143 #5E1E74 #862AA5 #AA3ECE #BF6FDA

Accessibility & contrast

On white

7.27
#862AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#862AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862AA5
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862AA5#FFFFFF#000000##FFFFFF
##862AA51.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A8
Deuteranopia (green-blind)
#2959A2
Tritanopia (blue-blind)
#844465
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #862aa5;
/* rgb */ color: rgb(134, 42, 165);
/* oklch */ color: oklch(48.0% 0.194 316.0);
Tailwind
colors: {
  custom: {
    50: '#ad6dc0',
    500: '#862aa5',
    950: '#000000',
  },
}
SCSS
$custom: #862aa5;
$custom-light: #ad6dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#862aa5",
  "rgb": {
    "r": 134,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 284.878,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.48041,
    "c": 0.19404,
    "h": 316
  },
  "luminance": 0.09441
}

Semantic roles & 50–950 ramp

primary
#862AA5
secondary
#80C169
accent
#E3456D
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #862AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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