#862D99#862D99

#862D99 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.5% C 0.180 H 320.0°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#862D99
RGBrgb(134, 45, 153)
HSLhsl(289, 55%, 39%)
HSVhsv(289, 71%, 60%)
CMYKcmyk(12.4%, 70.6%, 0%, 40%)
CIE-LABlab(36.45, 52.94, -41.20)
CIE-LCHlch(36.45, 67.08, 322.11°)
OKLaboklab(47.53% 0.1376 -0.1153)
OKLCHoklch(47.53% 0.18 320)
XYZxyz(16.5190, 9.2458, 31.0453)
Luminance0.0925 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862D99 #40992D
analogous
#502D99 #862D99 #992D76
triadic
#862D99 #99862D #2D9986
tetradic
#862D99 #99502D #40992D #2D7699
square
#862D99 #99502D #40992D #2D7699
split-complementary
#862D99 #76992D #2D9950
monochromatic
#33113A #5D1F6A #862D99 #AE3DC6 #C26CD4

Accessibility & contrast

On white

7.37
#862D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#862D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862D99
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862D99#FFFFFF#000000##FFFFFF
##862D991.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509C
Deuteranopia (green-blind)
#365996
Tritanopia (blue-blind)
#874160
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #862d99;
/* rgb */ color: rgb(134, 45, 153);
/* oklch */ color: oklch(47.5% 0.180 320.0);
Tailwind
colors: {
  custom: {
    50: '#ad6eb7',
    500: '#862d99',
    950: '#000000',
  },
}
SCSS
$custom: #862d99;
$custom-light: #ad6eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#862d99",
  "rgb": {
    "r": 134,
    "g": 45,
    "b": 153
  },
  "hsl": {
    "h": 289.444,
    "s": 54.545,
    "l": 38.824
  },
  "oklch": {
    "l": 0.47529,
    "c": 0.17951,
    "h": 320
  },
  "luminance": 0.09245
}

Semantic roles & 50–950 ramp

primary
#862D99
secondary
#76BB67
accent
#DE4A64
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110811
muted
#807B80

Preview Lab

Preview with #862D99

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

Preview Lab → · Contrast checker → · Palette generator →

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