#862BA1#862BA1

#862BA1 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.9% C 0.189 H 317.3°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#862BA1
RGBrgb(134, 43, 161)
HSLhsl(286, 58%, 40%)
HSVhsv(286, 73%, 63%)
CMYKcmyk(16.8%, 73.3%, 0%, 36.9%)
CIE-LABlab(36.69, 55.32, -45.66)
CIE-LCHlch(36.69, 71.73, 320.46°)
OKLaboklab(47.86% 0.1391 -0.1284)
OKLCHoklch(47.86% 0.189 317.3)
XYZxyz(17.1275, 9.3700, 34.6177)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862BA1 #46A12B
analogous
#4B2BA1 #862BA1 #A12B81
triadic
#862BA1 #A1862B #2BA186
tetradic
#862BA1 #A14B2B #46A12B #2B81A1
square
#862BA1 #A14B2B #46A12B #2B81A1
split-complementary
#862BA1 #81A12B #2BA14B
monochromatic
#361140 #5E1E71 #862BA1 #AB3ECB #C06ED8

Accessibility & contrast

On white

7.31
#862BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #862BA1
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862BA1#FFFFFF#000000##FFFFFF
##862BA11.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #862ba1;
/* rgb */ color: rgb(134, 43, 161);
/* oklch */ color: oklch(47.9% 0.189 317.3);
Tailwind
colors: {
  custom: {
    50: '#ad6dbd',
    500: '#862ba1',
    950: '#000000',
  },
}
SCSS
$custom: #862ba1;
$custom-light: #ad6dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#862ba1",
  "rgb": {
    "r": 134,
    "g": 43,
    "b": 161
  },
  "hsl": {
    "h": 286.271,
    "s": 57.843,
    "l": 40
  },
  "oklch": {
    "l": 0.47861,
    "c": 0.18925,
    "h": 317.3
  },
  "luminance": 0.09369
}

Semantic roles & 50–950 ramp

primary
#862BA1
secondary
#7CBF69
accent
#E1476A
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #862BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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