#862AA4#862AA4

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

Color values

HEX#862AA4
RGBrgb(134, 42, 164)
HSLhsl(285, 59%, 40%)
HSVhsv(285, 74%, 64%)
CMYKcmyk(18.3%, 74.4%, 0%, 35.7%)
CIE-LABlab(36.75, 56.30, -47.36)
CIE-LCHlch(36.75, 73.57, 319.93°)
OKLaboklab(47.97% 0.1397 -0.1333)
OKLCHoklch(47.97% 0.193 316.3)
XYZxyz(17.3593, 9.4053, 36.0158)
Luminance0.0940 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862AA4 #48A42A
analogous
#492AA4 #862AA4 #A42A85
triadic
#862AA4 #A4862A #2AA486
tetradic
#862AA4 #A4492A #48A42A #2A85A4
square
#862AA4 #A4492A #48A42A #2A85A4
split-complementary
#862AA4 #85A42A #2AA449
monochromatic
#361143 #5E1E73 #862AA4 #AA3ECD #C06EDA

Accessibility & contrast

On white

7.29
#862AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#862AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862AA4
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862AA4#FFFFFF#000000##FFFFFF
##862AA41.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A7
Deuteranopia (green-blind)
#2A59A1
Tritanopia (blue-blind)
#844465
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #862aa4;
/* rgb */ color: rgb(134, 42, 164);
/* oklch */ color: oklch(48.0% 0.193 316.3);
Tailwind
colors: {
  custom: {
    50: '#ad6dc0',
    500: '#862aa4',
    950: '#000000',
  },
}
SCSS
$custom: #862aa4;
$custom-light: #ad6dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#862aa4",
  "rgb": {
    "r": 134,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 285.246,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.47971,
    "c": 0.19313,
    "h": 316.3
  },
  "luminance": 0.09405
}

Semantic roles & 50–950 ramp

primary
#862AA4
secondary
#7FC169
accent
#E2456C
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #862AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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