#862DB5#862DB5

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

Color values

HEX#862DB5
RGBrgb(134, 45, 181)
HSLhsl(279, 60%, 44%)
HSVhsv(279, 75%, 71%)
CMYKcmyk(26%, 75.1%, 0%, 29%)
CIE-LABlab(38.34, 58.67, -54.93)
CIE-LCHlch(38.34, 80.37, 316.89°)
OKLaboklab(49.47% 0.1343 -0.1556)
OKLCHoklch(49.47% 0.206 310.8)
XYZxyz(19.1088, 10.2818, 44.6851)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862DB5 #5CB52D
analogous
#422DB5 #862DB5 #B52DA0
triadic
#862DB5 #B5862D #2DB586
tetradic
#862DB5 #B5422D #5CB52D #2DA0B5
square
#862DB5 #B5422D #5CB52D #2DA0B5
split-complementary
#862DB5 #A0B52D #2DB542
monochromatic
#3D1553 #622184 #862DB5 #A44DD3 #BD7EDF

Accessibility & contrast

On white

6.87
#862DB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #862DB5
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862DB5#FFFFFF#000000##FFFFFF
##862DB51.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B9
Deuteranopia (green-blind)
#0F5CB2
Tritanopia (blue-blind)
#804D6F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #862db5;
/* rgb */ color: rgb(134, 45, 181);
/* oklch */ color: oklch(49.5% 0.206 310.8);
Tailwind
colors: {
  custom: {
    50: '#ae6fcc',
    500: '#862db5',
    950: '#000000',
  },
}
SCSS
$custom: #862db5;
$custom-light: #ae6fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#862db5",
  "rgb": {
    "r": 134,
    "g": 45,
    "b": 181
  },
  "hsl": {
    "h": 279.265,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49474,
    "c": 0.20556,
    "h": 310.8
  },
  "luminance": 0.10281
}

Semantic roles & 50–950 ramp

primary
#862DB5
secondary
#92C776
accent
#E3447B
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #862DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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