#862DB8#862DB8

#862DB8 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.7% C 0.208 H 309.9°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#862DB8
RGBrgb(134, 45, 184)
HSLhsl(278, 61%, 45%)
HSVhsv(278, 76%, 72%)
CMYKcmyk(27.2%, 75.5%, 0%, 27.8%)
CIE-LABlab(38.56, 59.31, -56.35)
CIE-LCHlch(38.56, 81.81, 316.47°)
OKLaboklab(49.7% 0.1338 -0.1598)
OKLCHoklch(49.7% 0.208 309.9)
XYZxyz(19.4199, 10.4062, 46.3237)
Luminance0.1041 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862DB8 #5FB82D
analogous
#402DB8 #862DB8 #B82DA5
triadic
#862DB8 #B8862D #2DB886
tetradic
#862DB8 #B8402D #5FB82D #2DA5B8
square
#862DB8 #B8402D #5FB82D #2DA5B8
split-complementary
#862DB8 #A5B82D #2DB840
monochromatic
#3E1556 #622187 #862DB8 #A44ED4 #BD80E0

Accessibility & contrast

On white

6.82
#862DB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#862DB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #862DB8
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862DB8#FFFFFF#000000##FFFFFF
##862DB81.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BC
Deuteranopia (green-blind)
#035CB5
Tritanopia (blue-blind)
#7F4E71
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #862db8;
/* rgb */ color: rgb(134, 45, 184);
/* oklch */ color: oklch(49.7% 0.208 309.9);
Tailwind
colors: {
  custom: {
    50: '#ae6fce',
    500: '#862db8',
    950: '#000000',
  },
}
SCSS
$custom: #862db8;
$custom-light: #ae6fce;
$custom-dark: #000000;
JSON
{
  "hex": "#862db8",
  "rgb": {
    "r": 134,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 278.417,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.49697,
    "c": 0.20839,
    "h": 309.9
  },
  "luminance": 0.10406
}

Semantic roles & 50–950 ramp

primary
#862DB8
secondary
#95C978
accent
#E4447D
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #862DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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