#862DB4#862DB4

#862DB4 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.4% C 0.205 H 311.1°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#862DB4
RGBrgb(134, 45, 180)
HSLhsl(280, 60%, 44%)
HSVhsv(280, 75%, 71%)
CMYKcmyk(25.6%, 75%, 0%, 29.4%)
CIE-LABlab(38.27, 58.46, -54.46)
CIE-LCHlch(38.27, 79.89, 317.03°)
OKLaboklab(49.4% 0.1345 -0.1542)
OKLCHoklch(49.4% 0.205 311.1)
XYZxyz(19.0066, 10.2409, 44.1466)
Luminance0.1024 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862DB4 #5BB42D
analogous
#432DB4 #862DB4 #B42D9F
triadic
#862DB4 #B4862D #2DB486
tetradic
#862DB4 #B4432D #5BB42D #2D9FB4
square
#862DB4 #B4432D #5BB42D #2D9FB4
split-complementary
#862DB4 #9FB42D #2DB443
monochromatic
#3D1552 #622183 #862DB4 #A44CD2 #BD7DDE

Accessibility & contrast

On white

6.89
#862DB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#862DB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #862DB4
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862DB4#FFFFFF#000000##FFFFFF
##862DB41.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B8
Deuteranopia (green-blind)
#125CB1
Tritanopia (blue-blind)
#804C6F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #862db4;
/* rgb */ color: rgb(134, 45, 180);
/* oklch */ color: oklch(49.4% 0.205 311.1);
Tailwind
colors: {
  custom: {
    50: '#ae6fcb',
    500: '#862db4',
    950: '#000000',
  },
}
SCSS
$custom: #862db4;
$custom-light: #ae6fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#862db4",
  "rgb": {
    "r": 134,
    "g": 45,
    "b": 180
  },
  "hsl": {
    "h": 279.556,
    "s": 60,
    "l": 44.118
  },
  "oklch": {
    "l": 0.494,
    "c": 0.20462,
    "h": 311.1
  },
  "luminance": 0.1024
}

Semantic roles & 50–950 ramp

primary
#862DB4
secondary
#91C776
accent
#E3457B
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #862DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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