#862DB6#862DB6

#862DB6 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.5% C 0.207 H 310.5°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#862DB6
RGBrgb(134, 45, 182)
HSLhsl(279, 60%, 45%)
HSVhsv(279, 75%, 71%)
CMYKcmyk(26.4%, 75.3%, 0%, 28.6%)
CIE-LABlab(38.42, 58.88, -55.41)
CIE-LCHlch(38.42, 80.85, 316.74°)
OKLaboklab(49.55% 0.1342 -0.157)
OKLCHoklch(49.55% 0.207 310.5)
XYZxyz(19.2118, 10.3229, 45.2274)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862DB6 #5DB62D
analogous
#422DB6 #862DB6 #B62DA2
triadic
#862DB6 #B6862D #2DB686
tetradic
#862DB6 #B6422D #5DB62D #2DA2B6
square
#862DB6 #B6422D #5DB62D #2DA2B6
split-complementary
#862DB6 #A2B62D #2DB642
monochromatic
#3E1554 #622185 #862DB6 #A44DD3 #BD7EDF

Accessibility & contrast

On white

6.85
#862DB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#862DB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #862DB6
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862DB6#FFFFFF#000000##FFFFFF
##862DB61.006.853.066.85
#FFFFFF6.851.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BA
Deuteranopia (green-blind)
#0C5CB3
Tritanopia (blue-blind)
#7F4D70
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #862db6;
/* rgb */ color: rgb(134, 45, 182);
/* oklch */ color: oklch(49.5% 0.207 310.5);
Tailwind
colors: {
  custom: {
    50: '#ae6fcd',
    500: '#862db6',
    950: '#000000',
  },
}
SCSS
$custom: #862db6;
$custom-light: #ae6fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#862db6",
  "rgb": {
    "r": 134,
    "g": 45,
    "b": 182
  },
  "hsl": {
    "h": 278.978,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.49548,
    "c": 0.20651,
    "h": 310.5
  },
  "luminance": 0.10323
}

Semantic roles & 50–950 ramp

primary
#862DB6
secondary
#93C877
accent
#E3447C
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #862DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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