#862F88#862F88

#862F88 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.7% C 0.162 H 326.9°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#862F88
RGBrgb(134, 47, 136)
HSLhsl(299, 49%, 36%)
HSVhsv(299, 65%, 53%)
CMYKcmyk(1.5%, 65.4%, 0%, 46.7%)
CIE-LABlab(35.75, 48.87, -31.91)
CIE-LCHlch(35.75, 58.37, 326.86°)
OKLaboklab(46.7% 0.1353 -0.0883)
OKLCHoklch(46.7% 0.162 326.9)
XYZxyz(15.2917, 8.8799, 24.1963)
Luminance0.0888 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862F88 #31882F
analogous
#592F88 #862F88 #882F5D
triadic
#862F88 #88862F #2F8886
tetradic
#862F88 #88592F #31882F #2F5D88
square
#862F88 #88592F #31882F #2F5D88
split-complementary
#862F88 #5D882F #2F8859
monochromatic
#2C102D #591F5B #862F88 #B33FB5 #C867CA

Accessibility & contrast

On white

7.57
#862F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#862F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862F88
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862F88#FFFFFF#000000##FFFFFF
##862F881.007.572.787.57
#FFFFFF7.571.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224D8B
Deuteranopia (green-blind)
#435886
Tritanopia (blue-blind)
#8A3B57
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #862f88;
/* rgb */ color: rgb(134, 47, 136);
/* oklch */ color: oklch(46.7% 0.162 326.9);
Tailwind
colors: {
  custom: {
    50: '#ac6eab',
    500: '#862f88',
    950: '#000000',
  },
}
SCSS
$custom: #862f88;
$custom-light: #ac6eab;
$custom-dark: #000000;
JSON
{
  "hex": "#862f88",
  "rgb": {
    "r": 134,
    "g": 47,
    "b": 136
  },
  "hsl": {
    "h": 298.652,
    "s": 48.634,
    "l": 35.882
  },
  "oklch": {
    "l": 0.46702,
    "c": 0.16153,
    "h": 326.9
  },
  "luminance": 0.08879
}

Semantic roles & 50–950 ramp

primary
#862F88
secondary
#63B161
accent
#D85053
background
#FAF6FA
surface
#F5ECF4
border
#CFC7CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #862F88

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

Preview Lab → · Contrast checker → · Palette generator →

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