#862CA2#862CA2

#862CA2 is a mid, vivid purple. Relative luminance 0.095; OKLCH L 48.0% C 0.189 H 316.9°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#862CA2
RGBrgb(134, 44, 162)
HSLhsl(286, 57%, 40%)
HSVhsv(286, 73%, 64%)
CMYKcmyk(17.3%, 72.8%, 0%, 36.5%)
CIE-LABlab(36.89, 55.13, -45.94)
CIE-LCHlch(36.89, 71.76, 320.19°)
OKLaboklab(48.03% 0.1379 -0.1292)
OKLCHoklch(48.03% 0.189 316.9)
XYZxyz(17.2528, 9.4790, 35.0963)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862CA2 #48A22C
analogous
#4B2CA2 #862CA2 #A22C83
triadic
#862CA2 #A2862C #2CA286
tetradic
#862CA2 #A24B2C #48A22C #2C83A2
square
#862CA2 #A24B2C #48A22C #2C83A2
split-complementary
#862CA2 #83A22C #2CA24B
monochromatic
#361242 #5E1F72 #862CA2 #AA40CB #C070D8

Accessibility & contrast

On white

7.25
#862CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#862CA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862CA2
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862CA2#FFFFFF#000000##FFFFFF
##862CA21.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #862ca2;
/* rgb */ color: rgb(134, 44, 162);
/* oklch */ color: oklch(48.0% 0.189 316.9);
Tailwind
colors: {
  custom: {
    50: '#ad6ebe',
    500: '#862ca2',
    950: '#000000',
  },
}
SCSS
$custom: #862ca2;
$custom-light: #ad6ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#862ca2",
  "rgb": {
    "r": 134,
    "g": 44,
    "b": 162
  },
  "hsl": {
    "h": 285.763,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.48027,
    "c": 0.18899,
    "h": 316.9
  },
  "luminance": 0.09478
}

Semantic roles & 50–950 ramp

primary
#862CA2
secondary
#7FBF6A
accent
#E1476C
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #862CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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