#862E9F#862E9F

#862E9F is a mid, vivid purple. Relative luminance 0.095; OKLCH L 48.0% C 0.184 H 317.8°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#862E9F
RGBrgb(134, 46, 159)
HSLhsl(287, 55%, 40%)
HSVhsv(287, 71%, 62%)
CMYKcmyk(15.7%, 71.1%, 0%, 37.6%)
CIE-LABlab(36.98, 53.72, -43.99)
CIE-LCHlch(36.98, 69.43, 320.69°)
OKLaboklab(48.03% 0.1361 -0.1235)
OKLCHoklch(48.03% 0.184 317.8)
XYZxyz(17.0656, 9.5263, 33.7340)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862E9F #479F2E
analogous
#4E2E9F #862E9F #9F2E7F
triadic
#862E9F #9F862E #2E9F86
tetradic
#862E9F #9F4E2E #479F2E #2E7F9F
square
#862E9F #9F4E2E #479F2E #2E7F9F
split-complementary
#862E9F #7F9F2E #2E9F4E
monochromatic
#361340 #5E2070 #862E9F #AB42C8 #C071D6

Accessibility & contrast

On white

7.23
#862E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#862E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862E9F
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862E9F#FFFFFF#000000##FFFFFF
##862E9F1.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A2
Deuteranopia (green-blind)
#325A9C
Tritanopia (blue-blind)
#854463
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #862e9f;
/* rgb */ color: rgb(134, 46, 159);
/* oklch */ color: oklch(48.0% 0.184 317.8);
Tailwind
colors: {
  custom: {
    50: '#ad6fbc',
    500: '#862e9f',
    950: '#000000',
  },
}
SCSS
$custom: #862e9f;
$custom-light: #ad6fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#862e9f",
  "rgb": {
    "r": 134,
    "g": 46,
    "b": 159
  },
  "hsl": {
    "h": 286.726,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.48027,
    "c": 0.18379,
    "h": 317.8
  },
  "luminance": 0.09526
}

Semantic roles & 50–950 ramp

primary
#862E9F
secondary
#7DBE6B
accent
#DE496A
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #862E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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