#862F8A#862F8A

#862F8A is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.8% C 0.163 H 326.0°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#862F8A
RGBrgb(134, 47, 138)
HSLhsl(297, 49%, 36%)
HSVhsv(297, 66%, 54%)
CMYKcmyk(2.9%, 65.9%, 0%, 45.9%)
CIE-LABlab(35.86, 49.24, -32.97)
CIE-LCHlch(35.86, 59.26, 326.20°)
OKLaboklab(46.82% 0.1354 -0.0913)
OKLCHoklch(46.82% 0.163 326)
XYZxyz(15.4352, 8.9373, 24.9519)
Luminance0.0894 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862F8A #338A2F
analogous
#592F8A #862F8A #8A2F61
triadic
#862F8A #8A862F #2F8A86
tetradic
#862F8A #8A592F #338A2F #2F618A
square
#862F8A #8A592F #338A2F #2F618A
split-complementary
#862F8A #618A2F #2F8A59
monochromatic
#2D102F #5A1F5C #862F8A #B23FB8 #C768CC

Accessibility & contrast

On white

7.53
#862F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#862F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862F8A
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862F8A#FFFFFF#000000##FFFFFF
##862F8A1.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204D8D
Deuteranopia (green-blind)
#425888
Tritanopia (blue-blind)
#893C58
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #862f8a;
/* rgb */ color: rgb(134, 47, 138);
/* oklch */ color: oklch(46.8% 0.163 326.0);
Tailwind
colors: {
  custom: {
    50: '#ac6eac',
    500: '#862f8a',
    950: '#000000',
  },
}
SCSS
$custom: #862f8a;
$custom-light: #ac6eac;
$custom-dark: #000000;
JSON
{
  "hex": "#862f8a",
  "rgb": {
    "r": 134,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 297.363,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.46818,
    "c": 0.1633,
    "h": 326
  },
  "luminance": 0.08936
}

Semantic roles & 50–950 ramp

primary
#862F8A
secondary
#66B362
accent
#D94F55
background
#FAF6FA
surface
#F5ECF4
border
#CFC7CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #862F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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