#862EB7#862EB7

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

Color values

HEX#862EB7
RGBrgb(134, 46, 183)
HSLhsl(279, 60%, 45%)
HSVhsv(279, 75%, 72%)
CMYKcmyk(26.8%, 74.9%, 0%, 28.2%)
CIE-LABlab(38.62, 58.71, -55.66)
CIE-LCHlch(38.62, 80.90, 316.53°)
OKLaboklab(49.72% 0.1331 -0.1577)
OKLCHoklch(49.72% 0.206 310.1)
XYZxyz(19.3541, 10.4416, 45.7865)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862EB7 #5FB72E
analogous
#412EB7 #862EB7 #B72EA4
triadic
#862EB7 #B7862E #2EB786
tetradic
#862EB7 #B7412E #5FB72E #2EA4B7
square
#862EB7 #B7412E #5FB72E #2EA4B7
split-complementary
#862EB7 #A4B72E #2EB741
monochromatic
#3E1555 #622286 #862EB7 #A44FD3 #BD80DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##862EB7#FFFFFF#000000##FFFFFF
##862EB71.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)
#0057BB
Deuteranopia (green-blind)
#0A5CB4
Tritanopia (blue-blind)
#7F4E71
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #862eb7;
/* rgb */ color: rgb(134, 46, 183);
/* oklch */ color: oklch(49.7% 0.206 310.1);
Tailwind
colors: {
  custom: {
    50: '#ae70cd',
    500: '#862eb7',
    950: '#000000',
  },
}
SCSS
$custom: #862eb7;
$custom-light: #ae70cd;
$custom-dark: #000000;
JSON
{
  "hex": "#862eb7",
  "rgb": {
    "r": 134,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 278.54,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.49718,
    "c": 0.20637,
    "h": 310.1
  },
  "luminance": 0.10441
}

Semantic roles & 50–950 ramp

primary
#862EB7
secondary
#95C879
accent
#E3457D
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #862EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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