#862BAC#862BAC

#862BAC is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.6% C 0.199 H 313.7°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#862BAC
RGBrgb(134, 43, 172)
HSLhsl(282, 60%, 42%)
HSVhsv(282, 75%, 67%)
CMYKcmyk(22.1%, 75%, 0%, 32.5%)
CIE-LABlab(37.44, 57.55, -51.05)
CIE-LCHlch(37.44, 76.93, 318.42°)
OKLaboklab(48.63% 0.1377 -0.1442)
OKLCHoklch(48.63% 0.199 313.7)
XYZxyz(18.1405, 9.7752, 39.9529)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862BAC #51AC2B
analogous
#462BAC #862BAC #AC2B91
triadic
#862BAC #AC862B #2BAC86
tetradic
#862BAC #AC462B #51AC2B #2B91AC
square
#862BAC #AC462B #51AC2B #2B91AC
split-complementary
#862BAC #91AC2B #2BAC46
monochromatic
#3A134A #601F7B #862BAC #A744D0 #BE75DC

Accessibility & contrast

On white

7.11
#862BAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #862BAC
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862BAC#FFFFFF#000000##FFFFFF
##862BAC1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B0
Deuteranopia (green-blind)
#205AA9
Tritanopia (blue-blind)
#82486A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #862bac;
/* rgb */ color: rgb(134, 43, 172);
/* oklch */ color: oklch(48.6% 0.199 313.7);
Tailwind
colors: {
  custom: {
    50: '#ad6ec5',
    500: '#862bac',
    950: '#000000',
  },
}
SCSS
$custom: #862bac;
$custom-light: #ad6ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#862bac",
  "rgb": {
    "r": 134,
    "g": 43,
    "b": 172
  },
  "hsl": {
    "h": 282.326,
    "s": 60,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4863,
    "c": 0.19935,
    "h": 313.7
  },
  "luminance": 0.09775
}

Semantic roles & 50–950 ramp

primary
#862BAC
secondary
#88C46F
accent
#E34573
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #862BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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