#8940AC#8940AC

#8940AC is a mid, vivid purple. Relative luminance 0.120; OKLCH L 51.4% C 0.173 H 313.1°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#8940AC
RGBrgb(137, 64, 172)
HSLhsl(281, 46%, 46%)
HSVhsv(281, 63%, 67%)
CMYKcmyk(20.3%, 62.8%, 0%, 32.5%)
CIE-LABlab(41.16, 49.00, -45.04)
CIE-LCHlch(41.16, 66.56, 317.41°)
OKLaboklab(51.39% 0.1185 -0.1266)
OKLCHoklch(51.39% 0.173 313.1)
XYZxyz(19.5950, 11.9643, 40.2988)
Luminance0.1196 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8940AC #63AC40
analogous
#5340AC #8940AC #AC4099
triadic
#8940AC #AC8940 #40AC89
tetradic
#8940AC #AC5340 #63AC40 #4099AC
square
#8940AC #AC5340 #63AC40 #4099AC
split-complementary
#8940AC #99AC40 #40AC53
monochromatic
#421F53 #652F7F #8940AC #A664C5 #BF91D6

Accessibility & contrast

On white

6.19
#8940AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#8940AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8940AC
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8940AC#FFFFFF#000000##FFFFFF
##8940AC1.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#155DAF
Deuteranopia (green-blind)
#3A63A9
Tritanopia (blue-blind)
#855470
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8940ac;
/* rgb */ color: rgb(137, 64, 172);
/* oklch */ color: oklch(51.4% 0.173 313.1);
Tailwind
colors: {
  custom: {
    50: '#ae79c5',
    500: '#8940ac',
    950: '#000000',
  },
}
SCSS
$custom: #8940ac;
$custom-light: #ae79c5;
$custom-dark: #000000;
JSON
{
  "hex": "#8940ac",
  "rgb": {
    "r": 137,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 280.556,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.51386,
    "c": 0.17339,
    "h": 313.1
  },
  "luminance": 0.11964
}

Semantic roles & 50–950 ramp

primary
#8940AC
secondary
#9AC187
accent
#D5527D
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8940AC

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

Preview Lab → · Contrast checker → · Palette generator →

#8940AC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva