#862AA6#862AA6

#862AA6 is a mid, vivid purple. Relative luminance 0.095; OKLCH L 48.1% C 0.195 H 315.7°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#862AA6
RGBrgb(134, 42, 166)
HSLhsl(285, 60%, 41%)
HSVhsv(285, 75%, 65%)
CMYKcmyk(19.3%, 74.7%, 0%, 34.9%)
CIE-LABlab(36.89, 56.70, -48.35)
CIE-LCHlch(36.89, 74.51, 319.55°)
OKLaboklab(48.11% 0.1395 -0.1362)
OKLCHoklch(48.11% 0.195 315.7)
XYZxyz(17.5413, 9.4781, 36.9745)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862AA6 #4AA62A
analogous
#482AA6 #862AA6 #A62A88
triadic
#862AA6 #A6862A #2AA686
tetradic
#862AA6 #A6482A #4AA62A #2A88A6
square
#862AA6 #A6482A #4AA62A #2A88A6
split-complementary
#862AA6 #88A62A #2AA648
monochromatic
#371144 #5F1E75 #862AA6 #A93FCE #BF70DB

Accessibility & contrast

On white

7.25
#862AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#862AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862AA6
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862AA6#FFFFFF#000000##FFFFFF
##862AA61.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A9
Deuteranopia (green-blind)
#2759A3
Tritanopia (blue-blind)
#844566
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #862aa6;
/* rgb */ color: rgb(134, 42, 166);
/* oklch */ color: oklch(48.1% 0.195 315.7);
Tailwind
colors: {
  custom: {
    50: '#ad6dc1',
    500: '#862aa6',
    950: '#000000',
  },
}
SCSS
$custom: #862aa6;
$custom-light: #ad6dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#862aa6",
  "rgb": {
    "r": 134,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 284.516,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.48111,
    "c": 0.19495,
    "h": 315.7
  },
  "luminance": 0.09477
}

Semantic roles & 50–950 ramp

primary
#862AA6
secondary
#81C26A
accent
#E3456E
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110812
muted
#807B81

Preview Lab

Preview with #862AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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