#862DB7#862DB7

#862DB7 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.6% C 0.207 H 310.2°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#862DB7
RGBrgb(134, 45, 183)
HSLhsl(279, 61%, 45%)
HSVhsv(279, 75%, 72%)
CMYKcmyk(26.8%, 75.4%, 0%, 28.2%)
CIE-LABlab(38.49, 59.10, -55.88)
CIE-LCHlch(38.49, 81.33, 316.60°)
OKLaboklab(49.62% 0.134 -0.1584)
OKLCHoklch(49.62% 0.207 310.2)
XYZxyz(19.3155, 10.3644, 45.7736)
Luminance0.1036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862DB7 #5EB72D
analogous
#412DB7 #862DB7 #B72DA3
triadic
#862DB7 #B7862D #2DB786
tetradic
#862DB7 #B7412D #5EB72D #2DA3B7
square
#862DB7 #B7412D #5EB72D #2DA3B7
split-complementary
#862DB7 #A3B72D #2DB741
monochromatic
#3E1555 #622186 #862DB7 #A44ED3 #BD7FDF

Accessibility & contrast

On white

6.83
#862DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#862DB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #862DB7
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862DB7#FFFFFF#000000##FFFFFF
##862DB71.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BB
Deuteranopia (green-blind)
#075CB4
Tritanopia (blue-blind)
#7F4E70
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #862db7;
/* rgb */ color: rgb(134, 45, 183);
/* oklch */ color: oklch(49.6% 0.207 310.2);
Tailwind
colors: {
  custom: {
    50: '#ae6fcd',
    500: '#862db7',
    950: '#000000',
  },
}
SCSS
$custom: #862db7;
$custom-light: #ae6fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#862db7",
  "rgb": {
    "r": 134,
    "g": 45,
    "b": 183
  },
  "hsl": {
    "h": 278.696,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49622,
    "c": 0.20744,
    "h": 310.2
  },
  "luminance": 0.10364
}

Semantic roles & 50–950 ramp

primary
#862DB7
secondary
#94C878
accent
#E4447D
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #862DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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