#862A8A#862A8A

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

Color values

HEX#862A8A
RGBrgb(134, 42, 138)
HSLhsl(298, 53%, 35%)
HSVhsv(298, 70%, 54%)
CMYKcmyk(2.9%, 69.6%, 0%, 45.9%)
CIE-LABlab(35.12, 51.31, -34.14)
CIE-LCHlch(35.12, 61.64, 326.36°)
OKLaboklab(46.29% 0.1412 -0.0947)
OKLCHoklch(46.29% 0.17 326.1)
XYZxyz(15.2466, 8.5602, 24.8891)
Luminance0.0856 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862A8A #2E8A2A
analogous
#562A8A #862A8A #8A2A5E
triadic
#862A8A #8A862A #2A8A86
tetradic
#862A8A #8A562A #2E8A2A #2A5E8A
square
#862A8A #8A562A #2E8A2A #2A5E8A
split-complementary
#862A8A #5E8A2A #2A8A56
monochromatic
#2B0D2C #581C5B #862A8A #B438B9 #CA60CF

Accessibility & contrast

On white

7.74
#862A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#862A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862A8A
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862A8A#FFFFFF#000000##FFFFFF
##862A8A1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #862a8a;
/* rgb */ color: rgb(134, 42, 138);
/* oklch */ color: oklch(46.3% 0.170 326.1);
Tailwind
colors: {
  custom: {
    50: '#ac6cac',
    500: '#862a8a',
    950: '#000000',
  },
}
SCSS
$custom: #862a8a;
$custom-light: #ac6cac;
$custom-dark: #000000;
JSON
{
  "hex": "#862a8a",
  "rgb": {
    "r": 134,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 297.5,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.46285,
    "c": 0.16999,
    "h": 326.1
  },
  "luminance": 0.08559
}

Semantic roles & 50–950 ramp

primary
#862A8A
secondary
#5FB45B
accent
#DD4B51
background
#FAF6FA
surface
#F5ECF4
border
#CFC7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #862A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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