#A940D5#A940D5

#A940D5 is a mid, highly saturated purple. Relative luminance 0.169; OKLCH L 58.1% C 0.225 H 314.0°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#A940D5
RGBrgb(169, 64, 213)
HSLhsl(282, 64%, 54%)
HSVhsv(282, 70%, 84%)
CMYKcmyk(20.7%, 70%, 0%, 16.5%)
CIE-LABlab(48.14, 64.73, -57.47)
CIE-LCHlch(48.14, 86.56, 318.40°)
OKLaboklab(58.15% 0.1563 -0.162)
OKLCHoklch(58.15% 0.225 314)
XYZxyz(30.2038, 16.9069, 64.6102)
Luminance0.1691 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A940D5 #6CD540
analogous
#5F40D5 #A940D5 #D540B6
triadic
#A940D5 #D5A940 #40D5A9
tetradic
#A940D5 #D55F40 #6CD540 #40B6D5
square
#A940D5 #D55F40 #6CD540 #40B6D5
split-complementary
#A940D5 #B6D540 #40D55F
monochromatic
#621C7F #8827B1 #A940D5 #C072E0 #D6A4EB

Accessibility & contrast

On white

4.79
#A940D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#A940D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A940D5
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A940D5#FFFFFF#000000##FFFFFF
##A940D51.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD9
Deuteranopia (green-blind)
#3775D2
Tritanopia (blue-blind)
#A55F86
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #a940d5;
/* rgb */ color: rgb(169, 64, 213);
/* oklch */ color: oklch(58.1% 0.225 314.0);
Tailwind
colors: {
  custom: {
    50: '#c77ee3',
    500: '#a940d5',
    950: '#000000',
  },
}
SCSS
$custom: #a940d5;
$custom-light: #c77ee3;
$custom-dark: #000000;
JSON
{
  "hex": "#a940d5",
  "rgb": {
    "r": 169,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 282.282,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.58148,
    "c": 0.22515,
    "h": 314
  },
  "luminance": 0.16906
}

Semantic roles & 50–950 ramp

primary
#A940D5
secondary
#ABD899
accent
#E74172
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140A15
muted
#827C84

Preview Lab

Preview with #A940D5

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

Preview Lab → · Contrast checker → · Palette generator →

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