#862AB8#862AB8

#862AB8 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.4% C 0.211 H 310.2°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#862AB8
RGBrgb(134, 42, 184)
HSLhsl(279, 63%, 44%)
HSVhsv(279, 77%, 72%)
CMYKcmyk(27.2%, 77.2%, 0%, 27.8%)
CIE-LABlab(38.17, 60.43, -56.98)
CIE-LCHlch(38.17, 83.06, 316.68°)
OKLaboklab(49.42% 0.1364 -0.1616)
OKLCHoklch(49.42% 0.211 310.2)
XYZxyz(19.3095, 10.1854, 46.2869)
Luminance0.1018 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862AB8 #5CB82A
analogous
#3F2AB8 #862AB8 #B82AA3
triadic
#862AB8 #B8862A #2AB886
tetradic
#862AB8 #B83F2A #5CB82A #2AA3B8
square
#862AB8 #B83F2A #5CB82A #2AA3B8
split-complementary
#862AB8 #A3B82A #2AB83F
monochromatic
#3D1354 #621F86 #862AB8 #A44AD6 #BD7BE1

Accessibility & contrast

On white

6.91
#862AB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#862AB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #862AB8
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862AB8#FFFFFF#000000##FFFFFF
##862AB81.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BC
Deuteranopia (green-blind)
#005BB5
Tritanopia (blue-blind)
#7F4D70
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #862ab8;
/* rgb */ color: rgb(134, 42, 184);
/* oklch */ color: oklch(49.4% 0.211 310.2);
Tailwind
colors: {
  custom: {
    50: '#ae6ece',
    500: '#862ab8',
    950: '#000000',
  },
}
SCSS
$custom: #862ab8;
$custom-light: #ae6ece;
$custom-dark: #000000;
JSON
{
  "hex": "#862ab8",
  "rgb": {
    "r": 134,
    "g": 42,
    "b": 184
  },
  "hsl": {
    "h": 278.873,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49423,
    "c": 0.21149,
    "h": 310.2
  },
  "luminance": 0.10185
}

Semantic roles & 50–950 ramp

primary
#862AB8
secondary
#92C975
accent
#E6427C
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #862AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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