#862FA0#862FA0

#862FA0 is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.2% C 0.183 H 317.4°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#862FA0
RGBrgb(134, 47, 160)
HSLhsl(286, 55%, 41%)
HSVhsv(286, 71%, 63%)
CMYKcmyk(16.2%, 70.6%, 0%, 37.3%)
CIE-LABlab(37.19, 53.51, -44.26)
CIE-LCHlch(37.19, 69.44, 320.41°)
OKLaboklab(48.2% 0.135 -0.1243)
OKLCHoklch(48.2% 0.183 317.4)
XYZxyz(17.1923, 9.6402, 34.2060)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862FA0 #49A02F
analogous
#4E2FA0 #862FA0 #A02F81
triadic
#862FA0 #A0862F #2FA086
tetradic
#862FA0 #A04E2F #49A02F #2F81A0
square
#862FA0 #A04E2F #49A02F #2F81A0
split-complementary
#862FA0 #81A02F #2FA04E
monochromatic
#371341 #5E2171 #862FA0 #AA44C8 #BF73D6

Accessibility & contrast

On white

7.17
#862FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #862FA0
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862FA0#FFFFFF#000000##FFFFFF
##862FA01.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A3
Deuteranopia (green-blind)
#325A9D
Tritanopia (blue-blind)
#854564
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #862fa0;
/* rgb */ color: rgb(134, 47, 160);
/* oklch */ color: oklch(48.2% 0.183 317.4);
Tailwind
colors: {
  custom: {
    50: '#ad6fbd',
    500: '#862fa0',
    950: '#000000',
  },
}
SCSS
$custom: #862fa0;
$custom-light: #ad6fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#862fa0",
  "rgb": {
    "r": 134,
    "g": 47,
    "b": 160
  },
  "hsl": {
    "h": 286.195,
    "s": 54.589,
    "l": 40.588
  },
  "oklch": {
    "l": 0.48197,
    "c": 0.18347,
    "h": 317.4
  },
  "luminance": 0.09639
}

Semantic roles & 50–950 ramp

primary
#862FA0
secondary
#80BE6D
accent
#DE4A6C
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #862FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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