#862FA2#862FA2

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

Color values

HEX#862FA2
RGBrgb(134, 47, 162)
HSLhsl(285, 55%, 41%)
HSVhsv(285, 71%, 64%)
CMYKcmyk(17.3%, 71%, 0%, 36.5%)
CIE-LABlab(37.32, 53.91, -45.25)
CIE-LCHlch(37.32, 70.39, 319.99°)
OKLaboklab(48.33% 0.1348 -0.1272)
OKLCHoklch(48.33% 0.185 316.7)
XYZxyz(17.3686, 9.7107, 35.1349)
Luminance0.0971 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862FA2 #4BA22F
analogous
#4C2FA2 #862FA2 #A22F84
triadic
#862FA2 #A2862F #2FA286
tetradic
#862FA2 #A24C2F #4BA22F #2F84A2
square
#862FA2 #A24C2F #4BA22F #2F84A2
split-complementary
#862FA2 #84A22F #2FA24C
monochromatic
#381343 #5F2173 #862FA2 #A945C9 #BF75D7

Accessibility & contrast

On white

7.14
#862FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#862FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862FA2
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862FA2#FFFFFF#000000##FFFFFF
##862FA21.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A5
Deuteranopia (green-blind)
#305A9F
Tritanopia (blue-blind)
#844665
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #862fa2;
/* rgb */ color: rgb(134, 47, 162);
/* oklch */ color: oklch(48.3% 0.185 316.7);
Tailwind
colors: {
  custom: {
    50: '#ad6fbe',
    500: '#862fa2',
    950: '#000000',
  },
}
SCSS
$custom: #862fa2;
$custom-light: #ad6fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#862fa2",
  "rgb": {
    "r": 134,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 285.391,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.48331,
    "c": 0.18535,
    "h": 316.7
  },
  "luminance": 0.0971
}

Semantic roles & 50–950 ramp

primary
#862FA2
secondary
#82BF6E
accent
#DE496E
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #862FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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