#862FA1#862FA1

#862FA1 is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.3% C 0.184 H 317.0°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#862FA1
RGBrgb(134, 47, 161)
HSLhsl(286, 55%, 41%)
HSVhsv(286, 71%, 63%)
CMYKcmyk(16.8%, 70.8%, 0%, 36.9%)
CIE-LABlab(37.25, 53.71, -44.75)
CIE-LCHlch(37.25, 69.91, 320.20°)
OKLaboklab(48.26% 0.1349 -0.1257)
OKLCHoklch(48.26% 0.184 317)
XYZxyz(17.2801, 9.6753, 34.6686)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862FA1 #4AA12F
analogous
#4D2FA1 #862FA1 #A12F83
triadic
#862FA1 #A1862F #2FA186
tetradic
#862FA1 #A14D2F #4AA12F #2F83A1
square
#862FA1 #A14D2F #4AA12F #2F83A1
split-complementary
#862FA1 #83A12F #2FA14D
monochromatic
#371342 #5F2172 #862FA1 #A945C9 #BF74D6

Accessibility & contrast

On white

7.16
#862FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#862FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862FA1
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862FA1#FFFFFF#000000##FFFFFF
##862FA11.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A4
Deuteranopia (green-blind)
#315A9E
Tritanopia (blue-blind)
#854565
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #862fa1;
/* rgb */ color: rgb(134, 47, 161);
/* oklch */ color: oklch(48.3% 0.184 317.0);
Tailwind
colors: {
  custom: {
    50: '#ad6fbd',
    500: '#862fa1',
    950: '#000000',
  },
}
SCSS
$custom: #862fa1;
$custom-light: #ad6fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#862fa1",
  "rgb": {
    "r": 134,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 285.789,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.48264,
    "c": 0.18441,
    "h": 317
  },
  "luminance": 0.09675
}

Semantic roles & 50–950 ramp

primary
#862FA1
secondary
#81BE6E
accent
#DE4A6D
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #862FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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