#862C81#862C81

#862C81 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.0% C 0.160 H 330.1°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#862C81
RGBrgb(134, 44, 129)
HSLhsl(303, 51%, 35%)
HSVhsv(303, 67%, 53%)
CMYKcmyk(0%, 67.2%, 3.7%, 47.5%)
CIE-LABlab(34.91, 48.90, -28.90)
CIE-LCHlch(34.91, 56.80, 329.41°)
OKLaboklab(45.97% 0.1384 -0.0795)
OKLCHoklch(45.97% 0.16 330.1)
XYZxyz(14.6946, 8.4557, 21.6228)
Luminance0.0846 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862C81 #2C8631
analogous
#5E2C86 #862C81 #862C54
triadic
#862C81 #81862C #2C8186
tetradic
#862C81 #865E2C #2C8631 #2C5486
square
#862C81 #865E2C #2C8631 #2C5486
split-complementary
#862C81 #54862C #2C865E
monochromatic
#2A0E28 #581D55 #862C81 #B43BAD #CB61C5

Accessibility & contrast

On white

7.80
#862C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#862C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862C81
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862C81#FFFFFF#000000##FFFFFF
##862C811.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244A83
Deuteranopia (green-blind)
#45567F
Tritanopia (blue-blind)
#8B3652
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #862c81;
/* rgb */ color: rgb(134, 44, 129);
/* oklch */ color: oklch(46.0% 0.160 330.1);
Tailwind
colors: {
  custom: {
    50: '#ac6da6',
    500: '#862c81',
    950: '#000000',
  },
}
SCSS
$custom: #862c81;
$custom-light: #ac6da6;
$custom-dark: #000000;
JSON
{
  "hex": "#862c81",
  "rgb": {
    "r": 134,
    "g": 44,
    "b": 129
  },
  "hsl": {
    "h": 303.333,
    "s": 50.562,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45972,
    "c": 0.15967,
    "h": 330.1
  },
  "luminance": 0.08455
}

Semantic roles & 50–950 ramp

primary
#862C81
secondary
#5CB161
accent
#DA564E
background
#FAF6FA
surface
#F5ECF4
border
#CFC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #862C81

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

Preview Lab → · Contrast checker → · Palette generator →

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