#862E9D#862E9D

#862E9D is a mid, vivid purple. Relative luminance 0.095; OKLCH L 47.9% C 0.182 H 318.5°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#862E9D
RGBrgb(134, 46, 157)
HSLhsl(288, 55%, 40%)
HSVhsv(288, 71%, 62%)
CMYKcmyk(14.6%, 70.7%, 0%, 38.4%)
CIE-LABlab(36.85, 53.32, -42.99)
CIE-LCHlch(36.85, 68.49, 321.12°)
OKLaboklab(47.89% 0.1363 -0.1205)
OKLCHoklch(47.89% 0.182 318.5)
XYZxyz(16.8935, 9.4574, 32.8274)
Luminance0.0946 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862E9D #459D2E
analogous
#4F2E9D #862E9D #9D2E7C
triadic
#862E9D #9D862E #2E9D86
tetradic
#862E9D #9D4F2E #459D2E #2E7C9D
square
#862E9D #9D4F2E #459D2E #2E7C9D
split-complementary
#862E9D #7C9D2E #2E9D4F
monochromatic
#35123E #5E206E #862E9D #AB41C7 #C070D5

Accessibility & contrast

On white

7.26
#862E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#862E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862E9D
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862E9D#FFFFFF#000000##FFFFFF
##862E9D1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A0
Deuteranopia (green-blind)
#345A9A
Tritanopia (blue-blind)
#864362
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #862e9d;
/* rgb */ color: rgb(134, 46, 157);
/* oklch */ color: oklch(47.9% 0.182 318.5);
Tailwind
colors: {
  custom: {
    50: '#ad6fba',
    500: '#862e9d',
    950: '#000000',
  },
}
SCSS
$custom: #862e9d;
$custom-light: #ad6fba;
$custom-dark: #000000;
JSON
{
  "hex": "#862e9d",
  "rgb": {
    "r": 134,
    "g": 46,
    "b": 157
  },
  "hsl": {
    "h": 287.568,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.47894,
    "c": 0.18193,
    "h": 318.5
  },
  "luminance": 0.09457
}

Semantic roles & 50–950 ramp

primary
#862E9D
secondary
#7BBD6A
accent
#DE4A68
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #862E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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