#8940A2#8940A2

#8940A2 is a mid, vivid purple. Relative luminance 0.116; OKLCH L 50.8% C 0.163 H 316.6°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#8940A2
RGBrgb(137, 64, 162)
HSLhsl(285, 43%, 44%)
HSVhsv(285, 60%, 64%)
CMYKcmyk(15.4%, 60.5%, 0%, 36.5%)
CIE-LABlab(40.56, 46.84, -40.04)
CIE-LCHlch(40.56, 61.62, 319.48°)
OKLaboklab(50.76% 0.1184 -0.112)
OKLCHoklch(50.76% 0.163 316.6)
XYZxyz(18.6705, 11.5945, 35.4299)
Luminance0.1159 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8940A2 #59A240
analogous
#5840A2 #8940A2 #A2408A
triadic
#8940A2 #A28940 #40A289
tetradic
#8940A2 #A25840 #59A240 #408AA2
square
#8940A2 #A25840 #59A240 #408AA2
split-complementary
#8940A2 #8AA240 #40A258
monochromatic
#3F1D4A #642F76 #8940A2 #A75FC0 #BF8BD1

Accessibility & contrast

On white

6.33
#8940A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#8940A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8940A2
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8940A2#FFFFFF#000000##FFFFFF
##8940A21.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245BA5
Deuteranopia (green-blind)
#4162A0
Tritanopia (blue-blind)
#88516B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8940a2;
/* rgb */ color: rgb(137, 64, 162);
/* oklch */ color: oklch(50.8% 0.163 316.6);
Tailwind
colors: {
  custom: {
    50: '#ae79be',
    500: '#8940a2',
    950: '#000000',
  },
}
SCSS
$custom: #8940a2;
$custom-light: #ae79be;
$custom-dark: #000000;
JSON
{
  "hex": "#8940a2",
  "rgb": {
    "r": 137,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 284.694,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.50762,
    "c": 0.16296,
    "h": 316.6
  },
  "luminance": 0.11594
}

Semantic roles & 50–950 ramp

primary
#8940A2
secondary
#91BC82
accent
#D35575
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8940A2

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

Preview Lab → · Contrast checker → · Palette generator →

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