#862F87#862F87

#862F87 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.6% C 0.161 H 327.3°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#862F87
RGBrgb(134, 47, 135)
HSLhsl(299, 48%, 36%)
HSVhsv(299, 65%, 53%)
CMYKcmyk(0.7%, 65.2%, 0%, 47.1%)
CIE-LABlab(35.70, 48.69, -31.38)
CIE-LCHlch(35.70, 57.93, 327.20°)
OKLaboklab(46.64% 0.1352 -0.0868)
OKLCHoklch(46.64% 0.161 327.3)
XYZxyz(15.2210, 8.8516, 23.8238)
Luminance0.0885 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862F87 #30872F
analogous
#5A2F87 #862F87 #872F5C
triadic
#862F87 #87862F #2F8786
tetradic
#862F87 #875A2F #30872F #2F5C87
square
#862F87 #875A2F #30872F #2F5C87
split-complementary
#862F87 #5C872F #2F875A
monochromatic
#2C0F2C #591F5A #862F87 #B33FB4 #C966CA

Accessibility & contrast

On white

7.58
#862F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#862F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862F87
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862F87#FFFFFF#000000##FFFFFF
##862F871.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234D8A
Deuteranopia (green-blind)
#435885
Tritanopia (blue-blind)
#8A3B57
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #862f87;
/* rgb */ color: rgb(134, 47, 135);
/* oklch */ color: oklch(46.6% 0.161 327.3);
Tailwind
colors: {
  custom: {
    50: '#ac6eaa',
    500: '#862f87',
    950: '#000000',
  },
}
SCSS
$custom: #862f87;
$custom-light: #ac6eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#862f87",
  "rgb": {
    "r": 134,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 299.318,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.46644,
    "c": 0.16065,
    "h": 327.3
  },
  "luminance": 0.08851
}

Semantic roles & 50–950 ramp

primary
#862F87
secondary
#62B161
accent
#D85051
background
#FAF6FA
surface
#F5ECF4
border
#CFC7CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #862F87

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

Preview Lab → · Contrast checker → · Palette generator →

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