#862F96#862F96

#862F96 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.5% C 0.174 H 321.1°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#862F96
RGBrgb(134, 47, 150)
HSLhsl(291, 52%, 39%)
HSVhsv(291, 69%, 59%)
CMYKcmyk(10.7%, 68.7%, 0%, 41.2%)
CIE-LABlab(36.56, 51.52, -39.20)
CIE-LCHlch(36.56, 64.74, 322.73°)
OKLaboklab(47.55% 0.1355 -0.1095)
OKLCHoklch(47.55% 0.174 321.1)
XYZxyz(16.3524, 9.3042, 29.7828)
Luminance0.0930 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862F96 #3F962F
analogous
#522F96 #862F96 #962F72
triadic
#862F96 #96862F #2F9686
tetradic
#862F96 #96522F #3F962F #2F7296
square
#862F96 #96522F #3F962F #2F7296
split-complementary
#862F96 #72962F #2F9652
monochromatic
#331239 #5C2067 #862F96 #AE3FC3 #C26ED2

Accessibility & contrast

On white

7.34
#862F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#862F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862F96
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862F96#FFFFFF#000000##FFFFFF
##862F961.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C5099
Deuteranopia (green-blind)
#3A5993
Tritanopia (blue-blind)
#87415F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #862f96;
/* rgb */ color: rgb(134, 47, 150);
/* oklch */ color: oklch(47.5% 0.174 321.1);
Tailwind
colors: {
  custom: {
    50: '#ac6fb5',
    500: '#862f96',
    950: '#000000',
  },
}
SCSS
$custom: #862f96;
$custom-light: #ac6fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#862f96",
  "rgb": {
    "r": 134,
    "g": 47,
    "b": 150
  },
  "hsl": {
    "h": 290.68,
    "s": 52.284,
    "l": 38.627
  },
  "oklch": {
    "l": 0.47549,
    "c": 0.17418,
    "h": 321.1
  },
  "luminance": 0.09303
}

Semantic roles & 50–950 ramp

primary
#862F96
secondary
#74B968
accent
#DC4C62
background
#FAF7FB
surface
#F5EDF6
border
#CFC8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #862F96

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

Preview Lab → · Contrast checker → · Palette generator →

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