#862B9D#862B9D

#862B9D is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.6% C 0.186 H 318.7°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#862B9D
RGBrgb(134, 43, 157)
HSLhsl(288, 57%, 39%)
HSVhsv(288, 73%, 62%)
CMYKcmyk(14.6%, 72.6%, 0%, 38.4%)
CIE-LABlab(36.43, 54.52, -43.67)
CIE-LCHlch(36.43, 69.85, 321.31°)
OKLaboklab(47.59% 0.1394 -0.1225)
OKLCHoklch(47.59% 0.186 318.7)
XYZxyz(16.7804, 9.2312, 32.7897)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862B9D #429D2B
analogous
#4D2B9D #862B9D #9D2B7B
triadic
#862B9D #9D862B #2B9D86
tetradic
#862B9D #9D4D2B #429D2B #2B7B9D
square
#862B9D #9D4D2B #429D2B #2B7B9D
split-complementary
#862B9D #7B9D2B #2B9D4D
monochromatic
#34113D #5D1E6D #862B9D #AD3CCA #C16CD7

Accessibility & contrast

On white

7.38
#862B9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #862B9D
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862B9D#FFFFFF#000000##FFFFFF
##862B9D1.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A0
Deuteranopia (green-blind)
#32599A
Tritanopia (blue-blind)
#864161
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #862b9d;
/* rgb */ color: rgb(134, 43, 157);
/* oklch */ color: oklch(47.6% 0.186 318.7);
Tailwind
colors: {
  custom: {
    50: '#ad6dba',
    500: '#862b9d',
    950: '#000000',
  },
}
SCSS
$custom: #862b9d;
$custom-light: #ad6dba;
$custom-dark: #000000;
JSON
{
  "hex": "#862b9d",
  "rgb": {
    "r": 134,
    "g": 43,
    "b": 157
  },
  "hsl": {
    "h": 287.895,
    "s": 57,
    "l": 39.216
  },
  "oklch": {
    "l": 0.47591,
    "c": 0.1856,
    "h": 318.7
  },
  "luminance": 0.0923
}

Semantic roles & 50–950 ramp

primary
#862B9D
secondary
#78BD66
accent
#E04866
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #862B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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