#862AB9#862AB9

#862AB9 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.5% C 0.212 H 309.9°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#862AB9
RGBrgb(134, 42, 185)
HSLhsl(279, 63%, 45%)
HSVhsv(279, 77%, 73%)
CMYKcmyk(27.6%, 77.3%, 0%, 27.5%)
CIE-LABlab(38.25, 60.64, -57.45)
CIE-LCHlch(38.25, 83.53, 316.55°)
OKLaboklab(49.5% 0.1362 -0.163)
OKLCHoklch(49.5% 0.212 309.9)
XYZxyz(19.4147, 10.2275, 46.8409)
Luminance0.1023 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862AB9 #5DB92A
analogous
#3E2AB9 #862AB9 #B92AA5
triadic
#862AB9 #B9862A #2AB986
tetradic
#862AB9 #B93E2A #5DB92A #2AA5B9
square
#862AB9 #B93E2A #5DB92A #2AA5B9
split-complementary
#862AB9 #A5B92A #2AB93E
monochromatic
#3E1355 #621F87 #862AB9 #A44AD6 #BD7CE1

Accessibility & contrast

On white

6.90
#862AB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#862AB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #862AB9
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862AB9#FFFFFF#000000##FFFFFF
##862AB91.006.903.056.90
#FFFFFF6.901.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BD
Deuteranopia (green-blind)
#005BB6
Tritanopia (blue-blind)
#7F4D71
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #862ab9;
/* rgb */ color: rgb(134, 42, 185);
/* oklch */ color: oklch(49.5% 0.212 309.9);
Tailwind
colors: {
  custom: {
    50: '#ae6ecf',
    500: '#862ab9',
    950: '#000000',
  },
}
SCSS
$custom: #862ab9;
$custom-light: #ae6ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#862ab9",
  "rgb": {
    "r": 134,
    "g": 42,
    "b": 185
  },
  "hsl": {
    "h": 278.601,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.49499,
    "c": 0.21241,
    "h": 309.9
  },
  "luminance": 0.10227
}

Semantic roles & 50–950 ramp

primary
#862AB9
secondary
#93CA75
accent
#E6427C
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #862AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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