#862B8A#862B8A

#862B8A is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.4% C 0.169 H 326.1°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#862B8A
RGBrgb(134, 43, 138)
HSLhsl(297, 52%, 35%)
HSVhsv(297, 69%, 54%)
CMYKcmyk(2.9%, 68.8%, 0%, 45.9%)
CIE-LABlab(35.27, 50.91, -33.92)
CIE-LCHlch(35.27, 61.18, 326.33°)
OKLaboklab(46.39% 0.14 -0.0941)
OKLCHoklch(46.39% 0.169 326.1)
XYZxyz(15.2825, 8.6321, 24.9010)
Luminance0.0863 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862B8A #2F8A2B
analogous
#572B8A #862B8A #8A2B5E
triadic
#862B8A #8A862B #2B8A86
tetradic
#862B8A #8A572B #2F8A2B #2B5E8A
square
#862B8A #8A572B #2F8A2B #2B5E8A
split-complementary
#862B8A #5E8A2B #2B8A57
monochromatic
#2B0E2D #591C5B #862B8A #B33AB9 #C961CE

Accessibility & contrast

On white

7.70
#862B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#862B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862B8A
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862B8A#FFFFFF#000000##FFFFFF
##862B8A1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194C8D
Deuteranopia (green-blind)
#3F5788
Tritanopia (blue-blind)
#893957
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #862b8a;
/* rgb */ color: rgb(134, 43, 138);
/* oklch */ color: oklch(46.4% 0.169 326.1);
Tailwind
colors: {
  custom: {
    50: '#ac6dac',
    500: '#862b8a',
    950: '#000000',
  },
}
SCSS
$custom: #862b8a;
$custom-light: #ac6dac;
$custom-dark: #000000;
JSON
{
  "hex": "#862b8a",
  "rgb": {
    "r": 134,
    "g": 43,
    "b": 138
  },
  "hsl": {
    "h": 297.474,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.46387,
    "c": 0.16869,
    "h": 326.1
  },
  "luminance": 0.08631
}

Semantic roles & 50–950 ramp

primary
#862B8A
secondary
#60B45D
accent
#DC4C52
background
#FAF6FA
surface
#F5ECF4
border
#CFC7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #862B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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