#862EA5#862EA5

#862EA5 is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.4% C 0.189 H 315.7°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#862EA5
RGBrgb(134, 46, 165)
HSLhsl(284, 56%, 41%)
HSVhsv(284, 72%, 65%)
CMYKcmyk(18.8%, 72.1%, 0%, 35.3%)
CIE-LABlab(37.37, 54.94, -46.97)
CIE-LCHlch(37.37, 72.28, 319.47°)
OKLaboklab(48.43% 0.1356 -0.1322)
OKLCHoklch(48.43% 0.189 315.7)
XYZxyz(17.5990, 9.7396, 36.5429)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862EA5 #4DA52E
analogous
#4B2EA5 #862EA5 #A52E89
triadic
#862EA5 #A5862E #2EA586
tetradic
#862EA5 #A54B2E #4DA52E #2E89A5
square
#862EA5 #A54B2E #4DA52E #2E89A5
split-complementary
#862EA5 #89A52E #2EA54B
monochromatic
#381345 #5F2175 #862EA5 #A845CB #BF75D8

Accessibility & contrast

On white

7.12
#862EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#862EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862EA5
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862EA5#FFFFFF#000000##FFFFFF
##862EA51.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A8
Deuteranopia (green-blind)
#2C5AA2
Tritanopia (blue-blind)
#844767
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #862ea5;
/* rgb */ color: rgb(134, 46, 165);
/* oklch */ color: oklch(48.4% 0.189 315.7);
Tailwind
colors: {
  custom: {
    50: '#ad6fc0',
    500: '#862ea5',
    950: '#000000',
  },
}
SCSS
$custom: #862ea5;
$custom-light: #ad6fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#862ea5",
  "rgb": {
    "r": 134,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 284.37,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.48432,
    "c": 0.18939,
    "h": 315.7
  },
  "luminance": 0.09739
}

Semantic roles & 50–950 ramp

primary
#862EA5
secondary
#84C06F
accent
#E04870
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #862EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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