#862EB5#862EB5

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

Color values

HEX#862EB5
RGBrgb(134, 46, 181)
HSLhsl(279, 59%, 45%)
HSVhsv(279, 75%, 71%)
CMYKcmyk(26%, 74.6%, 0%, 29%)
CIE-LABlab(38.48, 58.28, -54.71)
CIE-LCHlch(38.48, 79.94, 316.81°)
OKLaboklab(49.57% 0.1334 -0.1549)
OKLCHoklch(49.57% 0.204 310.7)
XYZxyz(19.1474, 10.3590, 44.6979)
Luminance0.1036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862EB5 #5DB52E
analogous
#432EB5 #862EB5 #B52EA1
triadic
#862EB5 #B5862E #2EB586
tetradic
#862EB5 #B5432E #5DB52E #2EA1B5
square
#862EB5 #B5432E #5DB52E #2EA1B5
split-complementary
#862EB5 #A1B52E #2EB543
monochromatic
#3E1553 #622284 #862EB5 #A44ED2 #BD7FDE

Accessibility & contrast

On white

6.84
#862EB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#862EB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #862EB5
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862EB5#FFFFFF#000000##FFFFFF
##862EB51.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B9
Deuteranopia (green-blind)
#115CB2
Tritanopia (blue-blind)
#804D6F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #862eb5;
/* rgb */ color: rgb(134, 46, 181);
/* oklch */ color: oklch(49.6% 0.204 310.7);
Tailwind
colors: {
  custom: {
    50: '#ae70cc',
    500: '#862eb5',
    950: '#000000',
  },
}
SCSS
$custom: #862eb5;
$custom-light: #ae70cc;
$custom-dark: #000000;
JSON
{
  "hex": "#862eb5",
  "rgb": {
    "r": 134,
    "g": 46,
    "b": 181
  },
  "hsl": {
    "h": 279.111,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4957,
    "c": 0.20447,
    "h": 310.7
  },
  "luminance": 0.10359
}

Semantic roles & 50–950 ramp

primary
#862EB5
secondary
#93C778
accent
#E3457C
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #862EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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