#862AB5#862AB5

#862AB5 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.2% C 0.209 H 311.0°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#862AB5
RGBrgb(134, 42, 181)
HSLhsl(280, 62%, 44%)
HSVhsv(280, 77%, 71%)
CMYKcmyk(26%, 76.8%, 0%, 29%)
CIE-LABlab(37.95, 59.80, -55.57)
CIE-LCHlch(37.95, 81.63, 317.10°)
OKLaboklab(49.2% 0.137 -0.1574)
OKLCHoklch(49.2% 0.209 311)
XYZxyz(18.9984, 10.0609, 44.6483)
Luminance0.1006 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862AB5 #59B52A
analogous
#402AB5 #862AB5 #B52A9E
triadic
#862AB5 #B5862A #2AB586
tetradic
#862AB5 #B5402A #59B52A #2A9EB5
square
#862AB5 #B5402A #59B52A #2A9EB5
split-complementary
#862AB5 #9EB52A #2AB540
monochromatic
#3C1352 #611E83 #862AB5 #A548D4 #BD79E0

Accessibility & contrast

On white

6.97
#862AB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#862AB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #862AB5
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862AB5#FFFFFF#000000##FFFFFF
##862AB51.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B9
Deuteranopia (green-blind)
#075BB2
Tritanopia (blue-blind)
#804B6F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #862ab5;
/* rgb */ color: rgb(134, 42, 181);
/* oklch */ color: oklch(49.2% 0.209 311.0);
Tailwind
colors: {
  custom: {
    50: '#ae6ecc',
    500: '#862ab5',
    950: '#000000',
  },
}
SCSS
$custom: #862ab5;
$custom-light: #ae6ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#862ab5",
  "rgb": {
    "r": 134,
    "g": 42,
    "b": 181
  },
  "hsl": {
    "h": 279.712,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.49198,
    "c": 0.20872,
    "h": 311
  },
  "luminance": 0.1006
}

Semantic roles & 50–950 ramp

primary
#862AB5
secondary
#90C873
accent
#E5427A
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #862AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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