#862A9E#862A9E

#862A9E is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.6% C 0.188 H 318.4°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#862A9E
RGBrgb(134, 42, 158)
HSLhsl(288, 58%, 39%)
HSVhsv(288, 73%, 62%)
CMYKcmyk(15.2%, 73.4%, 0%, 38%)
CIE-LABlab(36.35, 55.11, -44.39)
CIE-LCHlch(36.35, 70.76, 321.15°)
OKLaboklab(47.56% 0.1403 -0.1246)
OKLCHoklch(47.56% 0.188 318.4)
XYZxyz(16.8302, 9.1937, 33.2292)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862A9E #429E2A
analogous
#4C2A9E #862A9E #9E2A7C
triadic
#862A9E #9E862A #2A9E86
tetradic
#862A9E #9E4C2A #429E2A #2A7C9E
square
#862A9E #9E4C2A #429E2A #2A7C9E
split-complementary
#862A9E #7C9E2A #2A9E4C
monochromatic
#34103D #5D1D6E #862A9E #AD3ACB #C16BD8

Accessibility & contrast

On white

7.40
#862A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#862A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862A9E
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862A9E#FFFFFF#000000##FFFFFF
##862A9E1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A1
Deuteranopia (green-blind)
#30589B
Tritanopia (blue-blind)
#854162
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #862a9e;
/* rgb */ color: rgb(134, 42, 158);
/* oklch */ color: oklch(47.6% 0.188 318.4);
Tailwind
colors: {
  custom: {
    50: '#ad6dbb',
    500: '#862a9e',
    950: '#000000',
  },
}
SCSS
$custom: #862a9e;
$custom-light: #ad6dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#862a9e",
  "rgb": {
    "r": 134,
    "g": 42,
    "b": 158
  },
  "hsl": {
    "h": 287.586,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.47561,
    "c": 0.18768,
    "h": 318.4
  },
  "luminance": 0.09193
}

Semantic roles & 50–950 ramp

primary
#862A9E
secondary
#78BE66
accent
#E14767
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #862A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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