#862786#862786

#862786 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.7% C 0.170 H 327.9°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#862786
RGBrgb(134, 39, 134)
HSLhsl(300, 55%, 34%)
HSVhsv(300, 71%, 53%)
CMYKcmyk(0%, 70.9%, 0%, 47.5%)
CIE-LABlab(34.48, 51.77, -32.69)
CIE-LCHlch(34.48, 61.22, 327.73°)
OKLaboklab(45.75% 0.1444 -0.0905)
OKLCHoklch(45.75% 0.17 327.9)
XYZxyz(14.8599, 8.2416, 23.3578)
Luminance0.0824 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862786 #278627
analogous
#572786 #862786 #862757
triadic
#862786 #868627 #278686
tetradic
#862786 #865727 #278627 #275786
square
#862786 #865727 #278627 #275786
split-complementary
#862786 #578627 #278657
monochromatic
#270B27 #571957 #862786 #B535B5 #CF59CF

Accessibility & contrast

On white

7.93
#862786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#862786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862786
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862786#FFFFFF#000000##FFFFFF
##8627861.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174989
Deuteranopia (green-blind)
#405584
Tritanopia (blue-blind)
#8A3554
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #862786;
/* rgb */ color: rgb(134, 39, 134);
/* oklch */ color: oklch(45.7% 0.170 327.9);
Tailwind
colors: {
  custom: {
    50: '#ac6aa9',
    500: '#862786',
    950: '#000000',
  },
}
SCSS
$custom: #862786;
$custom-light: #ac6aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#862786",
  "rgb": {
    "r": 134,
    "g": 39,
    "b": 134
  },
  "hsl": {
    "h": 300,
    "s": 54.913,
    "l": 33.922
  },
  "oklch": {
    "l": 0.45749,
    "c": 0.17037,
    "h": 327.9
  },
  "luminance": 0.08241
}

Semantic roles & 50–950 ramp

primary
#862786
secondary
#55B455
accent
#DE4A4A
background
#FAF6FA
surface
#F5ECF4
border
#CFC7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #862786

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

Preview Lab → · Contrast checker → · Palette generator →

#862786 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva