#862AB7#862AB7

#862AB7 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.3% C 0.211 H 310.5°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#862AB7
RGBrgb(134, 42, 183)
HSLhsl(279, 63%, 44%)
HSVhsv(279, 77%, 72%)
CMYKcmyk(26.8%, 77%, 0%, 28.2%)
CIE-LABlab(38.10, 60.22, -56.51)
CIE-LCHlch(38.10, 82.58, 316.82°)
OKLaboklab(49.35% 0.1366 -0.1602)
OKLCHoklch(49.35% 0.211 310.5)
XYZxyz(19.2051, 10.1436, 45.7368)
Luminance0.1014 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862AB7 #5BB72A
analogous
#402AB7 #862AB7 #B72AA2
triadic
#862AB7 #B7862A #2AB786
tetradic
#862AB7 #B7402A #5BB72A #2AA2B7
square
#862AB7 #B7402A #5BB72A #2AA2B7
split-complementary
#862AB7 #A2B72A #2AB740
monochromatic
#3D1353 #621F85 #862AB7 #A449D5 #BD7BE1

Accessibility & contrast

On white

6.93
#862AB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#862AB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #862AB7
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862AB7#FFFFFF#000000##FFFFFF
##862AB71.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BB
Deuteranopia (green-blind)
#005BB4
Tritanopia (blue-blind)
#7F4C70
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #862ab7;
/* rgb */ color: rgb(134, 42, 183);
/* oklch */ color: oklch(49.3% 0.211 310.5);
Tailwind
colors: {
  custom: {
    50: '#ae6ecd',
    500: '#862ab7',
    950: '#000000',
  },
}
SCSS
$custom: #862ab7;
$custom-light: #ae6ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#862ab7",
  "rgb": {
    "r": 134,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 279.149,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.49348,
    "c": 0.21057,
    "h": 310.5
  },
  "luminance": 0.10143
}

Semantic roles & 50–950 ramp

primary
#862AB7
secondary
#91C974
accent
#E6427B
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #862AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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