#862DA1#862DA1

#862DA1 is a mid, vivid purple. Relative luminance 0.095; OKLCH L 48.1% C 0.187 H 317.2°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#862DA1
RGBrgb(134, 45, 161)
HSLhsl(286, 56%, 40%)
HSVhsv(286, 72%, 63%)
CMYKcmyk(16.8%, 72%, 0%, 36.9%)
CIE-LABlab(36.96, 54.53, -45.22)
CIE-LCHlch(36.96, 70.84, 320.33°)
OKLaboklab(48.06% 0.137 -0.1271)
OKLCHoklch(48.06% 0.187 317.2)
XYZxyz(17.2020, 9.5190, 34.6425)
Luminance0.0952 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862DA1 #48A12D
analogous
#4C2DA1 #862DA1 #A12D82
triadic
#862DA1 #A1862D #2DA186
tetradic
#862DA1 #A14C2D #48A12D #2D82A1
square
#862DA1 #A14C2D #48A12D #2D82A1
split-complementary
#862DA1 #82A12D #2DA14C
monochromatic
#361241 #5E2071 #862DA1 #AA41CA #C071D7

Accessibility & contrast

On white

7.23
#862DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#862DA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862DA1
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862DA1#FFFFFF#000000##FFFFFF
##862DA11.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A4
Deuteranopia (green-blind)
#2F5A9E
Tritanopia (blue-blind)
#854464
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #862da1;
/* rgb */ color: rgb(134, 45, 161);
/* oklch */ color: oklch(48.1% 0.187 317.2);
Tailwind
colors: {
  custom: {
    50: '#ad6ebd',
    500: '#862da1',
    950: '#000000',
  },
}
SCSS
$custom: #862da1;
$custom-light: #ad6ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#862da1",
  "rgb": {
    "r": 134,
    "g": 45,
    "b": 161
  },
  "hsl": {
    "h": 286.034,
    "s": 56.311,
    "l": 40.392
  },
  "oklch": {
    "l": 0.48059,
    "c": 0.18687,
    "h": 317.2
  },
  "luminance": 0.09518
}

Semantic roles & 50–950 ramp

primary
#862DA1
secondary
#7FBF6B
accent
#E0486B
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #862DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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