#862AA8#862AA8

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

Color values

HEX#862AA8
RGBrgb(134, 42, 168)
HSLhsl(284, 60%, 41%)
HSVhsv(284, 75%, 66%)
CMYKcmyk(20.2%, 75%, 0%, 34.1%)
CIE-LABlab(37.03, 57.11, -49.32)
CIE-LCHlch(37.03, 75.46, 319.18°)
OKLaboklab(48.25% 0.1392 -0.1391)
OKLCHoklch(48.25% 0.197 315)
XYZxyz(17.7262, 9.5521, 37.9482)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862AA8 #4CA82A
analogous
#472AA8 #862AA8 #A82A8B
triadic
#862AA8 #A8862A #2AA886
tetradic
#862AA8 #A8472A #4CA82A #2A8BA8
square
#862AA8 #A8472A #4CA82A #2A8BA8
split-complementary
#862AA8 #8BA82A #2AA847
monochromatic
#381246 #5F1E77 #862AA8 #A940CF #BF71DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##862AA8#FFFFFF#000000##FFFFFF
##862AA81.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)
#0052AC
Deuteranopia (green-blind)
#2559A5
Tritanopia (blue-blind)
#834667
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #862aa8;
/* rgb */ color: rgb(134, 42, 168);
/* oklch */ color: oklch(48.3% 0.197 315.0);
Tailwind
colors: {
  custom: {
    50: '#ad6dc3',
    500: '#862aa8',
    950: '#000000',
  },
}
SCSS
$custom: #862aa8;
$custom-light: #ad6dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#862aa8",
  "rgb": {
    "r": 134,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 283.81,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.48252,
    "c": 0.19677,
    "h": 315
  },
  "luminance": 0.09551
}

Semantic roles & 50–950 ramp

primary
#862AA8
secondary
#83C36B
accent
#E3456F
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110812
muted
#807B81

Preview Lab

Preview with #862AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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