#862BAB#862BAB

#862BAB is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.6% C 0.198 H 314.0°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#862BAB
RGBrgb(134, 43, 171)
HSLhsl(283, 60%, 42%)
HSVhsv(283, 75%, 67%)
CMYKcmyk(21.6%, 74.9%, 0%, 32.9%)
CIE-LABlab(37.37, 57.34, -50.57)
CIE-LCHlch(37.37, 76.46, 318.59°)
OKLaboklab(48.56% 0.1378 -0.1428)
OKLCHoklch(48.56% 0.198 314)
XYZxyz(18.0448, 9.7370, 39.4491)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862BAB #50AB2B
analogous
#462BAB #862BAB #AB2B90
triadic
#862BAB #AB862B #2BAB86
tetradic
#862BAB #AB462B #50AB2B #2B90AB
square
#862BAB #AB462B #50AB2B #2B90AB
split-complementary
#862BAB #90AB2B #2BAB46
monochromatic
#391249 #601F7A #862BAB #A743D0 #BE74DC

Accessibility & contrast

On white

7.13
#862BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#862BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862BAB
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862BAB#FFFFFF#000000##FFFFFF
##862BAB1.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AF
Deuteranopia (green-blind)
#215AA8
Tritanopia (blue-blind)
#824769
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #862bab;
/* rgb */ color: rgb(134, 43, 171);
/* oklch */ color: oklch(48.6% 0.198 314.0);
Tailwind
colors: {
  custom: {
    50: '#ad6ec5',
    500: '#862bab',
    950: '#000000',
  },
}
SCSS
$custom: #862bab;
$custom-light: #ad6ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#862bab",
  "rgb": {
    "r": 134,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 282.656,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.48558,
    "c": 0.19842,
    "h": 314
  },
  "luminance": 0.09736
}

Semantic roles & 50–950 ramp

primary
#862BAB
secondary
#87C46E
accent
#E34573
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #862BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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