#862AB4#862AB4

#862AB4 is a mid, highly saturated purple. Relative luminance 0.100; OKLCH L 49.1% C 0.208 H 311.3°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#862AB4
RGBrgb(134, 42, 180)
HSLhsl(280, 62%, 44%)
HSVhsv(280, 77%, 71%)
CMYKcmyk(25.6%, 76.7%, 0%, 29.4%)
CIE-LABlab(37.88, 59.59, -55.09)
CIE-LCHlch(37.88, 81.15, 317.24°)
OKLaboklab(49.12% 0.1372 -0.156)
OKLCHoklch(49.12% 0.208 311.3)
XYZxyz(18.8961, 10.0200, 44.1098)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862AB4 #58B42A
analogous
#412AB4 #862AB4 #B42A9D
triadic
#862AB4 #B4862A #2AB486
tetradic
#862AB4 #B4412A #58B42A #2A9DB4
square
#862AB4 #B4412A #58B42A #2A9DB4
split-complementary
#862AB4 #9DB42A #2AB441
monochromatic
#3C1351 #611E82 #862AB4 #A547D4 #BD79E0

Accessibility & contrast

On white

6.99
#862AB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#862AB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #862AB4
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862AB4#FFFFFF#000000##FFFFFF
##862AB41.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#0B5BB1
Tritanopia (blue-blind)
#804B6E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #862ab4;
/* rgb */ color: rgb(134, 42, 180);
/* oklch */ color: oklch(49.1% 0.208 311.3);
Tailwind
colors: {
  custom: {
    50: '#ae6ecb',
    500: '#862ab4',
    950: '#000000',
  },
}
SCSS
$custom: #862ab4;
$custom-light: #ae6ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#862ab4",
  "rgb": {
    "r": 134,
    "g": 42,
    "b": 180
  },
  "hsl": {
    "h": 280,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.49123,
    "c": 0.2078,
    "h": 311.3
  },
  "luminance": 0.1002
}

Semantic roles & 50–950 ramp

primary
#862AB4
secondary
#8FC872
accent
#E54379
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #862AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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