#862E8A#862E8A

#862E8A is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.7% C 0.165 H 326.0°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#862E8A
RGBrgb(134, 46, 138)
HSLhsl(297, 50%, 36%)
HSVhsv(297, 67%, 54%)
CMYKcmyk(2.9%, 66.7%, 0%, 45.9%)
CIE-LABlab(35.71, 49.67, -33.21)
CIE-LCHlch(35.71, 59.75, 326.23°)
OKLaboklab(46.71% 0.1366 -0.0921)
OKLCHoklch(46.71% 0.165 326)
XYZxyz(15.3956, 8.8583, 24.9387)
Luminance0.0886 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862E8A #328A2E
analogous
#582E8A #862E8A #8A2E60
triadic
#862E8A #8A862E #2E8A86
tetradic
#862E8A #8A582E #328A2E #2E608A
square
#862E8A #8A582E #328A2E #2E608A
split-complementary
#862E8A #608A2E #2E8A58
monochromatic
#2D0F2E #591F5C #862E8A #B33DB8 #C866CC

Accessibility & contrast

On white

7.58
#862E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#862E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862E8A
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862E8A#FFFFFF#000000##FFFFFF
##862E8A1.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4D8D
Deuteranopia (green-blind)
#415888
Tritanopia (blue-blind)
#893B58
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #862e8a;
/* rgb */ color: rgb(134, 46, 138);
/* oklch */ color: oklch(46.7% 0.165 326.0);
Tailwind
colors: {
  custom: {
    50: '#ac6eac',
    500: '#862e8a',
    950: '#000000',
  },
}
SCSS
$custom: #862e8a;
$custom-light: #ac6eac;
$custom-dark: #000000;
JSON
{
  "hex": "#862e8a",
  "rgb": {
    "r": 134,
    "g": 46,
    "b": 138
  },
  "hsl": {
    "h": 297.391,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.46707,
    "c": 0.16469,
    "h": 326
  },
  "luminance": 0.08857
}

Semantic roles & 50–950 ramp

primary
#862E8A
secondary
#64B361
accent
#DA4E54
background
#FAF6FA
surface
#F5ECF4
border
#CFC7CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #862E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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