#862FA9#862FA9

#862FA9 is a mid, vivid purple. Relative luminance 0.100; OKLCH L 48.8% C 0.192 H 314.3°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#862FA9
RGBrgb(134, 47, 169)
HSLhsl(283, 56%, 42%)
HSVhsv(283, 72%, 66%)
CMYKcmyk(20.7%, 72.2%, 0%, 33.7%)
CIE-LABlab(37.78, 55.36, -48.70)
CIE-LCHlch(37.78, 73.73, 318.66°)
OKLaboklab(48.81% 0.1341 -0.1373)
OKLCHoklch(48.81% 0.192 314.3)
XYZxyz(18.0083, 9.9665, 38.5035)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862FA9 #52A92F
analogous
#492FA9 #862FA9 #A92F8F
triadic
#862FA9 #A9862F #2FA986
tetradic
#862FA9 #A9492F #52A92F #2F8FA9
square
#862FA9 #A9492F #52A92F #2F8FA9
split-complementary
#862FA9 #8FA92F #2FA949
monochromatic
#3A1449 #602279 #862FA9 #A749CC #BE79DA

Accessibility & contrast

On white

7.02
#862FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#862FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862FA9
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862FA9#FFFFFF#000000##FFFFFF
##862FA91.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AC
Deuteranopia (green-blind)
#285BA6
Tritanopia (blue-blind)
#834969
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #862fa9;
/* rgb */ color: rgb(134, 47, 169);
/* oklch */ color: oklch(48.8% 0.192 314.3);
Tailwind
colors: {
  custom: {
    50: '#ad70c3',
    500: '#862fa9',
    950: '#000000',
  },
}
SCSS
$custom: #862fa9;
$custom-light: #ad70c3;
$custom-dark: #000000;
JSON
{
  "hex": "#862fa9",
  "rgb": {
    "r": 134,
    "g": 47,
    "b": 169
  },
  "hsl": {
    "h": 282.787,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4881,
    "c": 0.19196,
    "h": 314.3
  },
  "luminance": 0.09966
}

Semantic roles & 50–950 ramp

primary
#862FA9
secondary
#89C272
accent
#E04874
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #862FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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