#862CA4#862CA4

#862CA4 is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.2% C 0.191 H 316.2°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#862CA4
RGBrgb(134, 44, 164)
HSLhsl(285, 58%, 41%)
HSVhsv(285, 73%, 64%)
CMYKcmyk(18.3%, 73.2%, 0%, 35.7%)
CIE-LABlab(37.02, 55.53, -46.93)
CIE-LCHlch(37.02, 72.70, 319.80°)
OKLaboklab(48.16% 0.1377 -0.1321)
OKLCHoklch(48.16% 0.191 316.2)
XYZxyz(17.4320, 9.5507, 36.0400)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862CA4 #4AA42C
analogous
#4A2CA4 #862CA4 #A42C86
triadic
#862CA4 #A4862C #2CA486
tetradic
#862CA4 #A44A2C #4AA42C #2C86A4
square
#862CA4 #A44A2C #4AA42C #2C86A4
split-complementary
#862CA4 #86A42C #2CA44A
monochromatic
#371243 #5F1F74 #862CA4 #A941CC #BF71D9

Accessibility & contrast

On white

7.22
#862CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #862CA4
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862CA4#FFFFFF#000000##FFFFFF
##862CA41.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A7
Deuteranopia (green-blind)
#2B5AA1
Tritanopia (blue-blind)
#844565
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #862ca4;
/* rgb */ color: rgb(134, 44, 164);
/* oklch */ color: oklch(48.2% 0.191 316.2);
Tailwind
colors: {
  custom: {
    50: '#ad6ec0',
    500: '#862ca4',
    950: '#000000',
  },
}
SCSS
$custom: #862ca4;
$custom-light: #ad6ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#862ca4",
  "rgb": {
    "r": 134,
    "g": 44,
    "b": 164
  },
  "hsl": {
    "h": 285,
    "s": 57.692,
    "l": 40.784
  },
  "oklch": {
    "l": 0.48164,
    "c": 0.19083,
    "h": 316.2
  },
  "luminance": 0.0955
}

Semantic roles & 50–950 ramp

primary
#862CA4
secondary
#81C06B
accent
#E1476D
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #862CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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