#862C8A#862C8A

#862C8A is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.5% C 0.167 H 326.1°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#862C8A
RGBrgb(134, 44, 138)
HSLhsl(297, 52%, 36%)
HSVhsv(297, 68%, 54%)
CMYKcmyk(2.9%, 68.1%, 0%, 45.9%)
CIE-LABlab(35.41, 50.50, -33.69)
CIE-LCHlch(35.41, 60.71, 326.30°)
OKLaboklab(46.49% 0.1389 -0.0934)
OKLCHoklch(46.49% 0.167 326.1)
XYZxyz(15.3193, 8.7057, 24.9133)
Luminance0.0871 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862C8A #308A2C
analogous
#572C8A #862C8A #8A2C5F
triadic
#862C8A #8A862C #2C8A86
tetradic
#862C8A #8A572C #308A2C #2C5F8A
square
#862C8A #8A572C #308A2C #2C5F8A
split-complementary
#862C8A #5F8A2C #2C8A57
monochromatic
#2C0E2D #591D5C #862C8A #B33BB8 #C963CD

Accessibility & contrast

On white

7.66
#862C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#862C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862C8A
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862C8A#FFFFFF#000000##FFFFFF
##862C8A1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4C8D
Deuteranopia (green-blind)
#405788
Tritanopia (blue-blind)
#893A57
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #862c8a;
/* rgb */ color: rgb(134, 44, 138);
/* oklch */ color: oklch(46.5% 0.167 326.1);
Tailwind
colors: {
  custom: {
    50: '#ac6dac',
    500: '#862c8a',
    950: '#000000',
  },
}
SCSS
$custom: #862c8a;
$custom-light: #ac6dac;
$custom-dark: #000000;
JSON
{
  "hex": "#862c8a",
  "rgb": {
    "r": 134,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 297.447,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.46492,
    "c": 0.16738,
    "h": 326.1
  },
  "luminance": 0.08705
}

Semantic roles & 50–950 ramp

primary
#862C8A
secondary
#62B45E
accent
#DB4D53
background
#FAF6FA
surface
#F5ECF4
border
#CFC7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #862C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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