#862B87#862B87

#862B87 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.2% C 0.166 H 327.4°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#862B87
RGBrgb(134, 43, 135)
HSLhsl(299, 52%, 35%)
HSVhsv(299, 68%, 53%)
CMYKcmyk(0.7%, 68.1%, 0%, 47.1%)
CIE-LABlab(35.10, 50.37, -32.33)
CIE-LCHlch(35.10, 59.86, 327.30°)
OKLaboklab(46.21% 0.14 -0.0895)
OKLCHoklch(46.21% 0.166 327.4)
XYZxyz(15.0683, 8.5464, 23.7729)
Luminance0.0854 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862B87 #2C872B
analogous
#582B87 #862B87 #872B5A
triadic
#862B87 #87862B #2B8786
tetradic
#862B87 #87582B #2C872B #2B5A87
square
#862B87 #87582B #2C872B #2B5A87
split-complementary
#862B87 #5A872B #2B8758
monochromatic
#2A0D2A #581C59 #862B87 #B43AB5 #CB60CC

Accessibility & contrast

On white

7.75
#862B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#862B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862B87
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862B87#FFFFFF#000000##FFFFFF
##862B871.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4B8A
Deuteranopia (green-blind)
#415785
Tritanopia (blue-blind)
#8A3855
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #862b87;
/* rgb */ color: rgb(134, 43, 135);
/* oklch */ color: oklch(46.2% 0.166 327.4);
Tailwind
colors: {
  custom: {
    50: '#ac6caa',
    500: '#862b87',
    950: '#000000',
  },
}
SCSS
$custom: #862b87;
$custom-light: #ac6caa;
$custom-dark: #000000;
JSON
{
  "hex": "#862b87",
  "rgb": {
    "r": 134,
    "g": 43,
    "b": 135
  },
  "hsl": {
    "h": 299.348,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.4621,
    "c": 0.16611,
    "h": 327.4
  },
  "luminance": 0.08545
}

Semantic roles & 50–950 ramp

primary
#862B87
secondary
#5CB25B
accent
#DB4D4E
background
#FAF6FA
surface
#F5ECF4
border
#CFC7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #862B87

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

Preview Lab → · Contrast checker → · Palette generator →

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