#A940C7#A940C7

#A940C7 is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.2% C 0.212 H 317.8°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#A940C7
RGBrgb(169, 64, 199)
HSLhsl(287, 55%, 52%)
HSVhsv(287, 68%, 78%)
CMYKcmyk(15.1%, 67.8%, 0%, 22%)
CIE-LABlab(47.27, 61.96, -50.82)
CIE-LCHlch(47.27, 80.13, 320.64°)
OKLaboklab(57.25% 0.1574 -0.1425)
OKLCHoklch(57.25% 0.212 317.8)
XYZxyz(28.5029, 16.2265, 55.6524)
Luminance0.1623 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A940C7 #5EC740
analogous
#6640C7 #A940C7 #C740A2
triadic
#A940C7 #C7A940 #40C7A9
tetradic
#A940C7 #C76640 #5EC740 #40A2C7
square
#A940C7 #C76640 #5EC740 #40A2C7
split-complementary
#A940C7 #A2C740 #40C766
monochromatic
#5C206D #842E9C #A940C7 #BE6FD5 #D49FE3

Accessibility & contrast

On white

4.95
#A940C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#A940C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A940C7
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A940C7#FFFFFF#000000##FFFFFF
##A940C71.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CB
Deuteranopia (green-blind)
#4573C4
Tritanopia (blue-blind)
#A8597F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #a940c7;
/* rgb */ color: rgb(169, 64, 199);
/* oklch */ color: oklch(57.2% 0.212 317.8);
Tailwind
colors: {
  custom: {
    50: '#c67dd9',
    500: '#a940c7',
    950: '#000000',
  },
}
SCSS
$custom: #a940c7;
$custom-light: #c67dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#a940c7",
  "rgb": {
    "r": 169,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 286.667,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.57246,
    "c": 0.21233,
    "h": 317.8
  },
  "luminance": 0.16225
}

Semantic roles & 50–950 ramp

primary
#A940C7
secondary
#A1CF94
accent
#DE4A6B
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#130A15
muted
#827C83

Preview Lab

Preview with #A940C7

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

Preview Lab → · Contrast checker → · Palette generator →

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