#862D96#862D96

#862D96 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.3% C 0.177 H 321.2°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#862D96
RGBrgb(134, 45, 150)
HSLhsl(291, 54%, 38%)
HSVhsv(291, 70%, 59%)
CMYKcmyk(10.7%, 70%, 0%, 41.2%)
CIE-LABlab(36.27, 52.35, -39.67)
CIE-LCHlch(36.27, 65.69, 322.85°)
OKLaboklab(47.34% 0.1377 -0.1109)
OKLCHoklch(47.34% 0.177 321.2)
XYZxyz(16.2743, 9.1480, 29.7568)
Luminance0.0915 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862D96 #3D962D
analogous
#512D96 #862D96 #962D71
triadic
#862D96 #96862D #2D9686
tetradic
#862D96 #96512D #3D962D #2D7196
square
#862D96 #96512D #3D962D #2D7196
split-complementary
#862D96 #71962D #2D9651
monochromatic
#321138 #5C1F67 #862D96 #B03CC4 #C36BD3

Accessibility & contrast

On white

7.42
#862D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#862D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862D96
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862D96#FFFFFF#000000##FFFFFF
##862D961.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054F99
Deuteranopia (green-blind)
#395993
Tritanopia (blue-blind)
#87405E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #862d96;
/* rgb */ color: rgb(134, 45, 150);
/* oklch */ color: oklch(47.3% 0.177 321.2);
Tailwind
colors: {
  custom: {
    50: '#ac6eb5',
    500: '#862d96',
    950: '#000000',
  },
}
SCSS
$custom: #862d96;
$custom-light: #ac6eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#862d96",
  "rgb": {
    "r": 134,
    "g": 45,
    "b": 150
  },
  "hsl": {
    "h": 290.857,
    "s": 53.846,
    "l": 38.235
  },
  "oklch": {
    "l": 0.47336,
    "c": 0.17678,
    "h": 321.2
  },
  "luminance": 0.09147
}

Semantic roles & 50–950 ramp

primary
#862D96
secondary
#72B965
accent
#DD4B61
background
#FAF6FB
surface
#F5ECF6
border
#CFC7D0
text
#110811
muted
#807B80

Preview Lab

Preview with #862D96

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

Preview Lab → · Contrast checker → · Palette generator →

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