#862E9B#862E9B

#862E9B is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.8% C 0.180 H 319.2°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#862E9B
RGBrgb(134, 46, 155)
HSLhsl(288, 54%, 39%)
HSVhsv(288, 70%, 61%)
CMYKcmyk(13.5%, 70.3%, 0%, 39.2%)
CIE-LABlab(36.72, 52.92, -41.98)
CIE-LCHlch(36.72, 67.55, 321.58°)
OKLaboklab(47.76% 0.1364 -0.1176)
OKLCHoklch(47.76% 0.18 319.2)
XYZxyz(16.7241, 9.3897, 31.9354)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862E9B #439B2E
analogous
#4F2E9B #862E9B #9B2E7A
triadic
#862E9B #9B862E #2E9B86
tetradic
#862E9B #9B4F2E #439B2E #2E7A9B
square
#862E9B #9B4F2E #439B2E #2E7A9B
split-complementary
#862E9B #7A9B2E #2E9B4F
monochromatic
#34123D #5D206C #862E9B #AC40C6 #C16FD4

Accessibility & contrast

On white

7.30
#862E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#862E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862E9B
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862E9B#FFFFFF#000000##FFFFFF
##862E9B1.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00519E
Deuteranopia (green-blind)
#365998
Tritanopia (blue-blind)
#864261
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #862e9b;
/* rgb */ color: rgb(134, 46, 155);
/* oklch */ color: oklch(47.8% 0.180 319.2);
Tailwind
colors: {
  custom: {
    50: '#ad6fb9',
    500: '#862e9b',
    950: '#000000',
  },
}
SCSS
$custom: #862e9b;
$custom-light: #ad6fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#862e9b",
  "rgb": {
    "r": 134,
    "g": 46,
    "b": 155
  },
  "hsl": {
    "h": 288.44,
    "s": 54.229,
    "l": 39.412
  },
  "oklch": {
    "l": 0.47763,
    "c": 0.18008,
    "h": 319.2
  },
  "luminance": 0.09389
}

Semantic roles & 50–950 ramp

primary
#862E9B
secondary
#79BC69
accent
#DE4A67
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110811
muted
#807B80

Preview Lab

Preview with #862E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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