#862DB9#862DB9

#862DB9 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.8% C 0.209 H 309.7°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#862DB9
RGBrgb(134, 45, 185)
HSLhsl(278, 61%, 45%)
HSVhsv(278, 76%, 73%)
CMYKcmyk(27.6%, 75.7%, 0%, 27.5%)
CIE-LABlab(38.64, 59.53, -56.82)
CIE-LCHlch(38.64, 82.29, 316.33°)
OKLaboklab(49.77% 0.1336 -0.1611)
OKLCHoklch(49.77% 0.209 309.7)
XYZxyz(19.5251, 10.4483, 46.8777)
Luminance0.1045 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862DB9 #60B92D
analogous
#402DB9 #862DB9 #B92DA6
triadic
#862DB9 #B9862D #2DB986
tetradic
#862DB9 #B9402D #60B92D #2DA6B9
square
#862DB9 #B9402D #60B92D #2DA6B9
split-complementary
#862DB9 #A6B92D #2DB940
monochromatic
#3F1557 #622188 #862DB9 #A44FD4 #BD80E0

Accessibility & contrast

On white

6.80
#862DB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#862DB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #862DB9
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862DB9#FFFFFF#000000##FFFFFF
##862DB91.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BD
Deuteranopia (green-blind)
#005CB6
Tritanopia (blue-blind)
#7F4F72
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #862db9;
/* rgb */ color: rgb(134, 45, 185);
/* oklch */ color: oklch(49.8% 0.209 309.7);
Tailwind
colors: {
  custom: {
    50: '#ae6fcf',
    500: '#862db9',
    950: '#000000',
  },
}
SCSS
$custom: #862db9;
$custom-light: #ae6fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#862db9",
  "rgb": {
    "r": 134,
    "g": 45,
    "b": 185
  },
  "hsl": {
    "h": 278.143,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49772,
    "c": 0.20933,
    "h": 309.7
  },
  "luminance": 0.10448
}

Semantic roles & 50–950 ramp

primary
#862DB9
secondary
#96C979
accent
#E4447E
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #862DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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