#862B9E#862B9E

#862B9E is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.7% C 0.187 H 318.3°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#862B9E
RGBrgb(134, 43, 158)
HSLhsl(287, 57%, 39%)
HSVhsv(287, 73%, 62%)
CMYKcmyk(15.2%, 72.8%, 0%, 38%)
CIE-LABlab(36.49, 54.72, -44.17)
CIE-LCHlch(36.49, 70.32, 321.09°)
OKLaboklab(47.66% 0.1393 -0.124)
OKLCHoklch(47.66% 0.187 318.3)
XYZxyz(16.8661, 9.2655, 33.2411)
Luminance0.0926 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862B9E #439E2B
analogous
#4C2B9E #862B9E #9E2B7D
triadic
#862B9E #9E862B #2B9E86
tetradic
#862B9E #9E4C2B #439E2B #2B7D9E
square
#862B9E #9E4C2B #439E2B #2B7D9E
split-complementary
#862B9E #7D9E2B #2B9E4C
monochromatic
#34113E #5D1E6E #862B9E #AC3CCA #C16CD7

Accessibility & contrast

On white

7.36
#862B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#862B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862B9E
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862B9E#FFFFFF#000000##FFFFFF
##862B9E1.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A1
Deuteranopia (green-blind)
#31599B
Tritanopia (blue-blind)
#854262
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #862b9e;
/* rgb */ color: rgb(134, 43, 158);
/* oklch */ color: oklch(47.7% 0.187 318.3);
Tailwind
colors: {
  custom: {
    50: '#ad6dbb',
    500: '#862b9e',
    950: '#000000',
  },
}
SCSS
$custom: #862b9e;
$custom-light: #ad6dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#862b9e",
  "rgb": {
    "r": 134,
    "g": 43,
    "b": 158
  },
  "hsl": {
    "h": 287.478,
    "s": 57.214,
    "l": 39.412
  },
  "oklch": {
    "l": 0.47658,
    "c": 0.18651,
    "h": 318.3
  },
  "luminance": 0.09265
}

Semantic roles & 50–950 ramp

primary
#862B9E
secondary
#79BE67
accent
#E04767
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #862B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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