#862EA0#862EA0

#862EA0 is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.1% C 0.185 H 317.4°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#862EA0
RGBrgb(134, 46, 160)
HSLhsl(286, 55%, 40%)
HSVhsv(286, 71%, 63%)
CMYKcmyk(16.2%, 71.2%, 0%, 37.3%)
CIE-LABlab(37.04, 53.92, -44.49)
CIE-LCHlch(37.04, 69.91, 320.47°)
OKLaboklab(48.09% 0.1361 -0.1249)
OKLCHoklch(48.09% 0.185 317.4)
XYZxyz(17.1528, 9.5611, 34.1928)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862EA0 #48A02E
analogous
#4D2EA0 #862EA0 #A02E81
triadic
#862EA0 #A0862E #2EA086
tetradic
#862EA0 #A04D2E #48A02E #2E81A0
square
#862EA0 #A04D2E #48A02E #2E81A0
split-complementary
#862EA0 #81A02E #2EA04D
monochromatic
#361341 #5E2070 #862EA0 #AA42C9 #C072D6

Accessibility & contrast

On white

7.21
#862EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #862EA0
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862EA0#FFFFFF#000000##FFFFFF
##862EA01.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A3
Deuteranopia (green-blind)
#315A9D
Tritanopia (blue-blind)
#854464
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #862ea0;
/* rgb */ color: rgb(134, 46, 160);
/* oklch */ color: oklch(48.1% 0.185 317.4);
Tailwind
colors: {
  custom: {
    50: '#ad6fbd',
    500: '#862ea0',
    950: '#000000',
  },
}
SCSS
$custom: #862ea0;
$custom-light: #ad6fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#862ea0",
  "rgb": {
    "r": 134,
    "g": 46,
    "b": 160
  },
  "hsl": {
    "h": 286.316,
    "s": 55.34,
    "l": 40.392
  },
  "oklch": {
    "l": 0.48093,
    "c": 0.18472,
    "h": 317.4
  },
  "luminance": 0.0956
}

Semantic roles & 50–950 ramp

primary
#862EA0
secondary
#7FBE6C
accent
#DF496B
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #862EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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