#A940D8#A940D8

#A940D8 is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.3% C 0.228 H 313.2°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#A940D8
RGBrgb(169, 64, 216)
HSLhsl(281, 66%, 55%)
HSVhsv(281, 70%, 85%)
CMYKcmyk(21.8%, 70.4%, 0%, 15.3%)
CIE-LABlab(48.34, 65.33, -58.88)
CIE-LCHlch(48.34, 87.95, 317.97°)
OKLaboklab(58.35% 0.156 -0.1661)
OKLCHoklch(58.35% 0.228 313.2)
XYZxyz(30.5881, 17.0606, 66.6342)
Luminance0.1706 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A940D8 #6FD840
analogous
#5D40D8 #A940D8 #D840BB
triadic
#A940D8 #D8A940 #40D8A9
tetradic
#A940D8 #D85D40 #6FD840 #40BBD8
square
#A940D8 #D85D40 #6FD840 #40BBD8
split-complementary
#A940D8 #BBD840 #40D85D
monochromatic
#631B83 #8925B6 #A940D8 #C073E2 #D7A6ED

Accessibility & contrast

On white

4.76
#A940D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#A940D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A940D8
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A940D8#FFFFFF#000000##FFFFFF
##A940D81.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDC
Deuteranopia (green-blind)
#3375D5
Tritanopia (blue-blind)
#A46088
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #a940d8;
/* rgb */ color: rgb(169, 64, 216);
/* oklch */ color: oklch(58.3% 0.228 313.2);
Tailwind
colors: {
  custom: {
    50: '#c77ee5',
    500: '#a940d8',
    950: '#000000',
  },
}
SCSS
$custom: #a940d8;
$custom-light: #c77ee5;
$custom-dark: #000000;
JSON
{
  "hex": "#a940d8",
  "rgb": {
    "r": 169,
    "g": 64,
    "b": 216
  },
  "hsl": {
    "h": 281.447,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.58348,
    "c": 0.22791,
    "h": 313.2
  },
  "luminance": 0.1706
}

Semantic roles & 50–950 ramp

primary
#A940D8
secondary
#AEDA9A
accent
#E93F73
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140A16
muted
#827C84

Preview Lab

Preview with #A940D8

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

Preview Lab → · Contrast checker → · Palette generator →

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