#862D88#862D88

#862D88 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.5% C 0.164 H 326.9°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#862D88
RGBrgb(134, 45, 136)
HSLhsl(299, 50%, 35%)
HSVhsv(299, 67%, 53%)
CMYKcmyk(1.5%, 66.9%, 0%, 46.7%)
CIE-LABlab(35.45, 49.72, -32.40)
CIE-LCHlch(35.45, 59.35, 326.91°)
OKLaboklab(46.48% 0.1377 -0.0897)
OKLCHoklch(46.48% 0.164 326.9)
XYZxyz(15.2136, 8.7237, 24.1703)
Luminance0.0872 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#862D88 #2F882D
analogous
#582D88 #862D88 #882D5C
triadic
#862D88 #88862D #2D8886
tetradic
#862D88 #88582D #2F882D #2D5C88
square
#862D88 #88582D #2F882D #2D5C88
split-complementary
#862D88 #5C882D #2D8858
monochromatic
#2B0F2C #591E5A #862D88 #B33CB6 #C964CC

Accessibility & contrast

On white

7.65
#862D88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#862D88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #862D88
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##862D88#FFFFFF#000000##FFFFFF
##862D881.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4C8B
Deuteranopia (green-blind)
#425786
Tritanopia (blue-blind)
#8A3A56
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #862d88;
/* rgb */ color: rgb(134, 45, 136);
/* oklch */ color: oklch(46.5% 0.164 326.9);
Tailwind
colors: {
  custom: {
    50: '#ac6dab',
    500: '#862d88',
    950: '#000000',
  },
}
SCSS
$custom: #862d88;
$custom-light: #ac6dab;
$custom-dark: #000000;
JSON
{
  "hex": "#862d88",
  "rgb": {
    "r": 134,
    "g": 45,
    "b": 136
  },
  "hsl": {
    "h": 298.681,
    "s": 50.276,
    "l": 35.49
  },
  "oklch": {
    "l": 0.46481,
    "c": 0.16429,
    "h": 326.9
  },
  "luminance": 0.08723
}

Semantic roles & 50–950 ramp

primary
#862D88
secondary
#60B25F
accent
#DA4E51
background
#FAF6FA
surface
#F5ECF4
border
#CFC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #862D88

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

Preview Lab → · Contrast checker → · Palette generator →

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