#862EB6#862EB6

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

Color values

HEX#862EB6
RGBrgb(134, 46, 182)
HSLhsl(279, 60%, 45%)
HSVhsv(279, 75%, 71%)
CMYKcmyk(26.4%, 74.7%, 0%, 28.6%)
CIE-LABlab(38.55, 58.50, -55.19)
CIE-LCHlch(38.55, 80.42, 316.67°)
OKLaboklab(49.64% 0.1332 -0.1563)
OKLCHoklch(49.64% 0.205 310.4)
XYZxyz(19.2504, 10.4002, 45.2402)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862EB6 #5EB62E
analogous
#422EB6 #862EB6 #B62EA2
triadic
#862EB6 #B6862E #2EB686
tetradic
#862EB6 #B6422E #5EB62E #2EA2B6
square
#862EB6 #B6422E #5EB62E #2EA2B6
split-complementary
#862EB6 #A2B62E #2EB642
monochromatic
#3E1554 #622285 #862EB6 #A44FD2 #BD80DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##862EB6#FFFFFF#000000##FFFFFF
##862EB61.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)
#0057BA
Deuteranopia (green-blind)
#0E5CB3
Tritanopia (blue-blind)
#7F4E70
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #862eb6;
/* rgb */ color: rgb(134, 46, 182);
/* oklch */ color: oklch(49.6% 0.205 310.4);
Tailwind
colors: {
  custom: {
    50: '#ae70cd',
    500: '#862eb6',
    950: '#000000',
  },
}
SCSS
$custom: #862eb6;
$custom-light: #ae70cd;
$custom-dark: #000000;
JSON
{
  "hex": "#862eb6",
  "rgb": {
    "r": 134,
    "g": 46,
    "b": 182
  },
  "hsl": {
    "h": 278.824,
    "s": 59.649,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49644,
    "c": 0.20542,
    "h": 310.4
  },
  "luminance": 0.104
}

Semantic roles & 50–950 ramp

primary
#862EB6
secondary
#94C878
accent
#E3457D
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #862EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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