#A940A6#A940A6

#A940A6 is a mid, vivid purple. Relative luminance 0.149; OKLCH L 55.3% C 0.183 H 328.9°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#A940A6
RGBrgb(169, 64, 166)
HSLhsl(302, 45%, 46%)
HSVhsv(302, 62%, 66%)
CMYKcmyk(0%, 62.1%, 1.8%, 33.7%)
CIE-LABlab(45.44, 55.88, -34.41)
CIE-LCHlch(45.44, 65.62, 328.38°)
OKLaboklab(55.33% 0.1569 -0.0948)
OKLCHoklch(55.33% 0.183 328.9)
XYZxyz(25.0782, 14.8567, 37.6157)
Luminance0.1485 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A940A6 #40A943
analogous
#7740A9 #A940A6 #A94071
triadic
#A940A6 #A6A940 #40A6A9
tetradic
#A940A6 #A97740 #40A943 #4071A9
square
#A940A6 #A97740 #40A943 #4071A9
split-complementary
#A940A6 #71A940 #40A977
monochromatic
#501E4F #7D2F7A #A940A6 #C462C1 #D58FD3

Accessibility & contrast

On white

5.29
#A940A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#A940A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A940A6
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A940A6#FFFFFF#000000##FFFFFF
##A940A61.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3663A9
Deuteranopia (green-blind)
#5A71A3
Tritanopia (blue-blind)
#AF4C6D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a940a6;
/* rgb */ color: rgb(169, 64, 166);
/* oklch */ color: oklch(55.3% 0.183 328.9);
Tailwind
colors: {
  custom: {
    50: '#c57cc1',
    500: '#a940a6',
    950: '#000000',
  },
}
SCSS
$custom: #a940a6;
$custom-light: #c57cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#a940a6",
  "rgb": {
    "r": 169,
    "g": 64,
    "b": 166
  },
  "hsl": {
    "h": 301.714,
    "s": 45.064,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55331,
    "c": 0.18328,
    "h": 328.9
  },
  "luminance": 0.14855
}

Semantic roles & 50–950 ramp

primary
#A940A6
secondary
#85C087
accent
#D55753
background
#FCF7FB
surface
#F8EEF7
border
#D1C9D0
text
#130A12
muted
#827C81

Preview Lab

Preview with #A940A6

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

Preview Lab → · Contrast checker → · Palette generator →

#A940A6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva