#862CA1#862CA1

#862CA1 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 48.0% C 0.188 H 317.2°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#862CA1
RGBrgb(134, 44, 161)
HSLhsl(286, 57%, 40%)
HSVhsv(286, 73%, 63%)
CMYKcmyk(16.8%, 72.7%, 0%, 36.9%)
CIE-LABlab(36.82, 54.92, -45.44)
CIE-LCHlch(36.82, 71.29, 320.40°)
OKLaboklab(47.96% 0.138 -0.1277)
OKLCHoklch(47.96% 0.188 317.2)
XYZxyz(17.1643, 9.4436, 34.6300)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862CA1 #47A12C
analogous
#4C2CA1 #862CA1 #A12C81
triadic
#862CA1 #A1862C #2CA186
tetradic
#862CA1 #A14C2C #47A12C #2C81A1
square
#862CA1 #A14C2C #47A12C #2C81A1
split-complementary
#862CA1 #81A12C #2CA14C
monochromatic
#361241 #5E1F71 #862CA1 #AB40CB #C070D8

Accessibility & contrast

On white

7.27
#862CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#862CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862CA1
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862CA1#FFFFFF#000000##FFFFFF
##862CA11.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A4
Deuteranopia (green-blind)
#2F599E
Tritanopia (blue-blind)
#854464
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #862ca1;
/* rgb */ color: rgb(134, 44, 161);
/* oklch */ color: oklch(48.0% 0.188 317.2);
Tailwind
colors: {
  custom: {
    50: '#ad6ebd',
    500: '#862ca1',
    950: '#000000',
  },
}
SCSS
$custom: #862ca1;
$custom-light: #ad6ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#862ca1",
  "rgb": {
    "r": 134,
    "g": 44,
    "b": 161
  },
  "hsl": {
    "h": 286.154,
    "s": 57.073,
    "l": 40.196
  },
  "oklch": {
    "l": 0.47959,
    "c": 0.18807,
    "h": 317.2
  },
  "luminance": 0.09443
}

Semantic roles & 50–950 ramp

primary
#862CA1
secondary
#7DBF6A
accent
#E0476B
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #862CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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