#862B97#862B97

#862B97 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.2% C 0.180 H 320.9°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#862B97
RGBrgb(134, 43, 151)
HSLhsl(291, 56%, 38%)
HSVhsv(291, 72%, 59%)
CMYKcmyk(11.3%, 71.5%, 0%, 40.8%)
CIE-LABlab(36.04, 53.35, -40.64)
CIE-LCHlch(36.04, 67.07, 322.70°)
OKLaboklab(47.2% 0.1398 -0.1137)
OKLCHoklch(47.2% 0.18 320.9)
XYZxyz(16.2807, 9.0313, 30.1578)
Luminance0.0903 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862B97 #3C972B
analogous
#502B97 #862B97 #972B72
triadic
#862B97 #97862B #2B9786
tetradic
#862B97 #97502B #3C972B #2B7297
square
#862B97 #97502B #3C972B #2B7297
split-complementary
#862B97 #72972B #2B9750
monochromatic
#311038 #5C1D67 #862B97 #B039C7 #C368D4

Accessibility & contrast

On white

7.48
#862B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#862B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862B97
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862B97#FFFFFF#000000##FFFFFF
##862B971.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9A
Deuteranopia (green-blind)
#375894
Tritanopia (blue-blind)
#873F5E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #862b97;
/* rgb */ color: rgb(134, 43, 151);
/* oklch */ color: oklch(47.2% 0.180 320.9);
Tailwind
colors: {
  custom: {
    50: '#ad6db6',
    500: '#862b97',
    950: '#000000',
  },
}
SCSS
$custom: #862b97;
$custom-light: #ad6db6;
$custom-dark: #000000;
JSON
{
  "hex": "#862b97",
  "rgb": {
    "r": 134,
    "g": 43,
    "b": 151
  },
  "hsl": {
    "h": 290.556,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.47197,
    "c": 0.18018,
    "h": 320.9
  },
  "luminance": 0.0903
}

Semantic roles & 50–950 ramp

primary
#862B97
secondary
#71BB63
accent
#DF4960
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #862B97

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

Preview Lab → · Contrast checker → · Palette generator →

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