#A940D3#A940D3

#A940D3 is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 58.0% C 0.223 H 314.5°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#A940D3
RGBrgb(169, 64, 211)
HSLhsl(283, 63%, 54%)
HSVhsv(283, 70%, 83%)
CMYKcmyk(19.9%, 69.7%, 0%, 17.3%)
CIE-LABlab(48.01, 64.32, -56.53)
CIE-LCHlch(48.01, 85.64, 318.69°)
OKLaboklab(58.02% 0.1565 -0.1593)
OKLCHoklch(58.02% 0.223 314.5)
XYZxyz(29.9515, 16.8060, 63.2815)
Luminance0.1681 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A940D3 #6AD340
analogous
#6040D3 #A940D3 #D340B4
triadic
#A940D3 #D3A940 #40D3A9
tetradic
#A940D3 #D36040 #6AD340 #40B4D3
square
#A940D3 #D36040 #6AD340 #40B4D3
split-complementary
#A940D3 #B4D340 #40D360
monochromatic
#611D7C #8828AE #A940D3 #BF72DE #D6A3EA

Accessibility & contrast

On white

4.82
#A940D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#A940D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A940D3
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A940D3#FFFFFF#000000##FFFFFF
##A940D31.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD7
Deuteranopia (green-blind)
#3975D0
Tritanopia (blue-blind)
#A55E85
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #a940d3;
/* rgb */ color: rgb(169, 64, 211);
/* oklch */ color: oklch(58.0% 0.223 314.5);
Tailwind
colors: {
  custom: {
    50: '#c77de1',
    500: '#a940d3',
    950: '#000000',
  },
}
SCSS
$custom: #a940d3;
$custom-light: #c77de1;
$custom-dark: #000000;
JSON
{
  "hex": "#a940d3",
  "rgb": {
    "r": 169,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 282.857,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.58016,
    "c": 0.22331,
    "h": 314.5
  },
  "luminance": 0.16805
}

Semantic roles & 50–950 ramp

primary
#A940D3
secondary
#AAD798
accent
#E64271
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A940D3

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

Preview Lab → · Contrast checker → · Palette generator →

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