#A940DF#A940DF

#A940DF is a mid, highly saturated violet. Relative luminance 0.174; OKLCH L 58.8% C 0.234 H 311.5°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#A940DF
RGBrgb(169, 64, 223)
HSLhsl(280, 71%, 56%)
HSVhsv(280, 71%, 87%)
CMYKcmyk(24.2%, 71.3%, 0%, 12.5%)
CIE-LABlab(48.80, 66.76, -62.12)
CIE-LCHlch(48.80, 91.19, 317.06°)
OKLaboklab(58.82% 0.1552 -0.1757)
OKLCHoklch(58.82% 0.234 311.5)
XYZxyz(31.5124, 17.4303, 71.5021)
Luminance0.1743 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A940DF #76DF40
analogous
#5A40DF #A940DF #DF40C5
triadic
#A940DF #DFA940 #40DFA9
tetradic
#A940DF #DF5A40 #76DF40 #40C5DF
square
#A940DF #DF5A40 #76DF40 #40C5DF
split-complementary
#A940DF #C5DF40 #40DF5A
monochromatic
#65188D #8B20C1 #A940DF #C174E8 #D8A9F1

Accessibility & contrast

On white

4.68
#A940DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#A940DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A940DF
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A940DF#FFFFFF#000000##FFFFFF
##A940DF1.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE4
Deuteranopia (green-blind)
#2876DC
Tritanopia (blue-blind)
#A2638C
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #a940df;
/* rgb */ color: rgb(169, 64, 223);
/* oklch */ color: oklch(58.8% 0.234 311.5);
Tailwind
colors: {
  custom: {
    50: '#c77eea',
    500: '#a940df',
    950: '#000000',
  },
}
SCSS
$custom: #a940df;
$custom-light: #c77eea;
$custom-dark: #000000;
JSON
{
  "hex": "#a940df",
  "rgb": {
    "r": 169,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 279.623,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.58823,
    "c": 0.23438,
    "h": 311.5
  },
  "luminance": 0.1743
}

Semantic roles & 50–950 ramp

primary
#A940DF
secondary
#B3DE9D
accent
#EE3A77
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #A940DF

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

Preview Lab → · Contrast checker → · Palette generator →

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