#862EB9#862EB9

#862EB9 is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.9% C 0.208 H 309.6°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#862EB9
RGBrgb(134, 46, 185)
HSLhsl(278, 60%, 45%)
HSVhsv(278, 75%, 73%)
CMYKcmyk(27.6%, 75.1%, 0%, 27.5%)
CIE-LABlab(38.77, 59.14, -56.60)
CIE-LCHlch(38.77, 81.86, 316.26°)
OKLaboklab(49.87% 0.1327 -0.1605)
OKLCHoklch(49.87% 0.208 309.6)
XYZxyz(19.5637, 10.5255, 46.8906)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862EB9 #61B92E
analogous
#412EB9 #862EB9 #B92EA6
triadic
#862EB9 #B9862E #2EB986
tetradic
#862EB9 #B9412E #61B92E #2EA6B9
square
#862EB9 #B9412E #61B92E #2EA6B9
split-complementary
#862EB9 #A6B92E #2EB941
monochromatic
#3F1657 #622288 #862EB9 #A451D4 #BD82E0

Accessibility & contrast

On white

6.76
#862EB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#862EB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #862EB9
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862EB9#FFFFFF#000000##FFFFFF
##862EB91.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BD
Deuteranopia (green-blind)
#025CB6
Tritanopia (blue-blind)
#7F4F72
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #862eb9;
/* rgb */ color: rgb(134, 46, 185);
/* oklch */ color: oklch(49.9% 0.208 309.6);
Tailwind
colors: {
  custom: {
    50: '#ae70cf',
    500: '#862eb9',
    950: '#000000',
  },
}
SCSS
$custom: #862eb9;
$custom-light: #ae70cf;
$custom-dark: #000000;
JSON
{
  "hex": "#862eb9",
  "rgb": {
    "r": 134,
    "g": 46,
    "b": 185
  },
  "hsl": {
    "h": 277.986,
    "s": 60.173,
    "l": 45.294
  },
  "oklch": {
    "l": 0.49866,
    "c": 0.20826,
    "h": 309.6
  },
  "luminance": 0.10525
}

Semantic roles & 50–950 ramp

primary
#862EB9
secondary
#97C97A
accent
#E3447F
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #862EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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