#862EB4#862EB4

#862EB4 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.5% C 0.204 H 311.0°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#862EB4
RGBrgb(134, 46, 180)
HSLhsl(279, 59%, 44%)
HSVhsv(279, 74%, 71%)
CMYKcmyk(25.6%, 74.4%, 0%, 29.4%)
CIE-LABlab(38.41, 58.07, -54.24)
CIE-LCHlch(38.41, 79.46, 316.96°)
OKLaboklab(49.5% 0.1336 -0.1536)
OKLCHoklch(49.5% 0.204 311)
XYZxyz(19.0452, 10.3181, 44.1595)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862EB4 #5CB42E
analogous
#432EB4 #862EB4 #B42E9F
triadic
#862EB4 #B4862E #2EB486
tetradic
#862EB4 #B4432E #5CB42E #2E9FB4
square
#862EB4 #B4432E #5CB42E #2E9FB4
split-complementary
#862EB4 #9FB42E #2EB443
monochromatic
#3D1553 #622283 #862EB4 #A44ED2 #BD7EDE

Accessibility & contrast

On white

6.85
#862EB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#862EB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #862EB4
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862EB4#FFFFFF#000000##FFFFFF
##862EB41.006.853.066.85
#FFFFFF6.851.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B8
Deuteranopia (green-blind)
#145CB1
Tritanopia (blue-blind)
#804D6F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #862eb4;
/* rgb */ color: rgb(134, 46, 180);
/* oklch */ color: oklch(49.5% 0.204 311.0);
Tailwind
colors: {
  custom: {
    50: '#ae70cb',
    500: '#862eb4',
    950: '#000000',
  },
}
SCSS
$custom: #862eb4;
$custom-light: #ae70cb;
$custom-dark: #000000;
JSON
{
  "hex": "#862eb4",
  "rgb": {
    "r": 134,
    "g": 46,
    "b": 180
  },
  "hsl": {
    "h": 279.403,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49496,
    "c": 0.20353,
    "h": 311
  },
  "luminance": 0.10318
}

Semantic roles & 50–950 ramp

primary
#862EB4
secondary
#92C777
accent
#E2457B
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #862EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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