#A940D6#A940D6

#A940D6 is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.2% C 0.226 H 313.7°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#A940D6
RGBrgb(169, 64, 214)
HSLhsl(282, 65%, 55%)
HSVhsv(282, 70%, 84%)
CMYKcmyk(21%, 70.1%, 0%, 16.1%)
CIE-LABlab(48.21, 64.93, -57.94)
CIE-LCHlch(48.21, 87.02, 318.25°)
OKLaboklab(58.22% 0.1562 -0.1634)
OKLCHoklch(58.22% 0.226 313.7)
XYZxyz(30.3311, 16.9578, 65.2807)
Luminance0.1696 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A940D6 #6DD640
analogous
#5E40D6 #A940D6 #D640B8
triadic
#A940D6 #D6A940 #40D6A9
tetradic
#A940D6 #D65E40 #6DD640 #40B8D6
square
#A940D6 #D65E40 #6DD640 #40B8D6
split-complementary
#A940D6 #B8D640 #40D65E
monochromatic
#621B80 #8826B2 #A940D6 #C072E1 #D6A5EC

Accessibility & contrast

On white

4.78
#A940D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#A940D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A940D6
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A940D6#FFFFFF#000000##FFFFFF
##A940D61.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDA
Deuteranopia (green-blind)
#3675D3
Tritanopia (blue-blind)
#A56087
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #a940d6;
/* rgb */ color: rgb(169, 64, 214);
/* oklch */ color: oklch(58.2% 0.226 313.7);
Tailwind
colors: {
  custom: {
    50: '#c77ee3',
    500: '#a940d6',
    950: '#000000',
  },
}
SCSS
$custom: #a940d6;
$custom-light: #c77ee3;
$custom-dark: #000000;
JSON
{
  "hex": "#a940d6",
  "rgb": {
    "r": 169,
    "g": 64,
    "b": 214
  },
  "hsl": {
    "h": 282,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.58215,
    "c": 0.22607,
    "h": 313.7
  },
  "luminance": 0.16957
}

Semantic roles & 50–950 ramp

primary
#A940D6
secondary
#ACD999
accent
#E84072
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140A16
muted
#827C84

Preview Lab

Preview with #A940D6

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

Preview Lab → · Contrast checker → · Palette generator →

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