#882EA4#882EA4

#882EA4 is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.6% C 0.189 H 316.9°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#882EA4
RGBrgb(136, 46, 164)
HSLhsl(286, 56%, 41%)
HSVhsv(286, 72%, 64%)
CMYKcmyk(17.1%, 72%, 0%, 35.7%)
CIE-LABlab(37.61, 55.16, -45.97)
CIE-LCHlch(37.61, 71.81, 320.19°)
OKLaboklab(48.64% 0.1382 -0.1292)
OKLCHoklch(48.64% 0.189 316.9)
XYZxyz(17.8302, 9.8693, 36.0805)
Luminance0.0987 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#882EA4 #4AA42E
analogous
#4D2EA4 #882EA4 #A42E85
triadic
#882EA4 #A4882E #2EA488
tetradic
#882EA4 #A44D2E #4AA42E #2E85A4
square
#882EA4 #A44D2E #4AA42E #2E85A4
split-complementary
#882EA4 #85A42E #2EA44D
monochromatic
#391344 #602174 #882EA4 #AB45CB #C074D8

Accessibility & contrast

On white

7.06
#882EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#882EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #882EA4
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##882EA4#FFFFFF#000000##FFFFFF
##882EA41.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A7
Deuteranopia (green-blind)
#305BA1
Tritanopia (blue-blind)
#874666
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #882ea4;
/* rgb */ color: rgb(136, 46, 164);
/* oklch */ color: oklch(48.6% 0.189 316.9);
Tailwind
colors: {
  custom: {
    50: '#ae6fc0',
    500: '#882ea4',
    950: '#000000',
  },
}
SCSS
$custom: #882ea4;
$custom-light: #ae6fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#882ea4",
  "rgb": {
    "r": 136,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 285.763,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.48641,
    "c": 0.18923,
    "h": 316.9
  },
  "luminance": 0.09869
}

Semantic roles & 50–950 ramp

primary
#882EA4
secondary
#81C06E
accent
#DF486C
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #882EA4

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

Preview Lab → · Contrast checker → · Palette generator →

#882EA4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva