#862AA3#862AA3

#862AA3 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.9% C 0.192 H 316.7°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#862AA3
RGBrgb(134, 42, 163)
HSLhsl(286, 59%, 40%)
HSVhsv(286, 74%, 64%)
CMYKcmyk(17.8%, 74.2%, 0%, 36.1%)
CIE-LABlab(36.69, 56.10, -46.87)
CIE-LCHlch(36.69, 73.10, 320.12°)
OKLaboklab(47.9% 0.1398 -0.1319)
OKLCHoklch(47.9% 0.192 316.7)
XYZxyz(17.2693, 9.3693, 35.5420)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862AA3 #47A32A
analogous
#4A2AA3 #862AA3 #A32A83
triadic
#862AA3 #A3862A #2AA386
tetradic
#862AA3 #A34A2A #47A32A #2A83A3
square
#862AA3 #A34A2A #47A32A #2A83A3
split-complementary
#862AA3 #83A32A #2AA34A
monochromatic
#361142 #5E1D72 #862AA3 #AB3DCD #C06EDA

Accessibility & contrast

On white

7.31
#862AA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#862AA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862AA3
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862AA3#FFFFFF#000000##FFFFFF
##862AA31.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A6
Deuteranopia (green-blind)
#2B59A0
Tritanopia (blue-blind)
#844364
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #862aa3;
/* rgb */ color: rgb(134, 42, 163);
/* oklch */ color: oklch(47.9% 0.192 316.7);
Tailwind
colors: {
  custom: {
    50: '#ad6dbf',
    500: '#862aa3',
    950: '#000000',
  },
}
SCSS
$custom: #862aa3;
$custom-light: #ad6dbf;
$custom-dark: #000000;
JSON
{
  "hex": "#862aa3",
  "rgb": {
    "r": 134,
    "g": 42,
    "b": 163
  },
  "hsl": {
    "h": 285.62,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.47902,
    "c": 0.19222,
    "h": 316.7
  },
  "luminance": 0.09369
}

Semantic roles & 50–950 ramp

primary
#862AA3
secondary
#7DC068
accent
#E2466B
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #862AA3

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

Preview Lab → · Contrast checker → · Palette generator →

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