#862D8E#862D8E

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

Color values

HEX#862D8E
RGBrgb(134, 45, 142)
HSLhsl(295, 52%, 37%)
HSVhsv(295, 68%, 56%)
CMYKcmyk(5.6%, 68.3%, 0%, 44.3%)
CIE-LABlab(35.79, 50.83, -35.55)
CIE-LCHlch(35.79, 62.03, 325.04°)
OKLaboklab(46.84% 0.1378 -0.0988)
OKLCHoklch(46.84% 0.17 324.4)
XYZxyz(15.6520, 8.8990, 26.4792)
Luminance0.0890 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862D8E #358E2D
analogous
#562D8E #862D8E #8E2D66
triadic
#862D8E #8E862D #2D8E86
tetradic
#862D8E #8E562D #358E2D #2D668E
square
#862D8E #8E562D #358E2D #2D668E
split-complementary
#862D8E #668E2D #2D8E56
monochromatic
#2E1031 #5A1E60 #862D8E #B23CBC #C667CF

Accessibility & contrast

On white

7.56
#862D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #862D8E
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862D8E#FFFFFF#000000##FFFFFF
##862D8E1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174D91
Deuteranopia (green-blind)
#3E588C
Tritanopia (blue-blind)
#893C5A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #862d8e;
/* rgb */ color: rgb(134, 45, 142);
/* oklch */ color: oklch(46.8% 0.170 324.4);
Tailwind
colors: {
  custom: {
    50: '#ac6eaf',
    500: '#862d8e',
    950: '#000000',
  },
}
SCSS
$custom: #862d8e;
$custom-light: #ac6eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#862d8e",
  "rgb": {
    "r": 134,
    "g": 45,
    "b": 142
  },
  "hsl": {
    "h": 295.052,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.46839,
    "c": 0.16958,
    "h": 324.4
  },
  "luminance": 0.08898
}

Semantic roles & 50–950 ramp

primary
#862D8E
secondary
#68B561
accent
#DB4C58
background
#FAF6FA
surface
#F5ECF4
border
#CFC7CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #862D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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