#862FB1#862FB1

#862FB1 is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.4% C 0.200 H 311.8°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#862FB1
RGBrgb(134, 47, 177)
HSLhsl(280, 58%, 44%)
HSVhsv(280, 73%, 69%)
CMYKcmyk(24.3%, 73.4%, 0%, 30.6%)
CIE-LABlab(38.33, 57.04, -52.58)
CIE-LCHlch(38.33, 77.57, 317.33°)
OKLaboklab(49.38% 0.1331 -0.1487)
OKLCHoklch(49.38% 0.2 311.8)
XYZxyz(18.7824, 10.2762, 42.5805)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862FB1 #5AB12F
analogous
#452FB1 #862FB1 #B12F9B
triadic
#862FB1 #B1862F #2FB186
tetradic
#862FB1 #B1452F #5AB12F #2F9BB1
square
#862FB1 #B1452F #5AB12F #2F9BB1
split-complementary
#862FB1 #9BB12F #2FB145
monochromatic
#3D1550 #612281 #862FB1 #A54DD0 #BD7EDD

Accessibility & contrast

On white

6.87
#862FB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #862FB1
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862FB1#FFFFFF#000000##FFFFFF
##862FB11.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B5
Deuteranopia (green-blind)
#1C5CAE
Tritanopia (blue-blind)
#814C6D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #862fb1;
/* rgb */ color: rgb(134, 47, 177);
/* oklch */ color: oklch(49.4% 0.200 311.8);
Tailwind
colors: {
  custom: {
    50: '#ae70c9',
    500: '#862fb1',
    950: '#000000',
  },
}
SCSS
$custom: #862fb1;
$custom-light: #ae70c9;
$custom-dark: #000000;
JSON
{
  "hex": "#862fb1",
  "rgb": {
    "r": 134,
    "g": 47,
    "b": 177
  },
  "hsl": {
    "h": 280.154,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.49377,
    "c": 0.19955,
    "h": 311.8
  },
  "luminance": 0.10276
}

Semantic roles & 50–950 ramp

primary
#862FB1
secondary
#91C576
accent
#E1477A
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #862FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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