#A940DB#A940DB

#A940DB is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 58.6% C 0.231 H 312.4°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#A940DB
RGBrgb(169, 64, 219)
HSLhsl(281, 68%, 55%)
HSVhsv(281, 71%, 86%)
CMYKcmyk(22.8%, 70.8%, 0%, 14.1%)
CIE-LABlab(48.53, 65.94, -60.27)
CIE-LCHlch(48.53, 89.34, 317.57°)
OKLaboklab(58.55% 0.1557 -0.1703)
OKLCHoklch(58.55% 0.231 312.4)
XYZxyz(30.9795, 17.2172, 68.6954)
Luminance0.1722 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A940DB #72DB40
analogous
#5B40DB #A940DB #DB40C0
triadic
#A940DB #DBA940 #40DBA9
tetradic
#A940DB #DB5B40 #72DB40 #40C0DB
square
#A940DB #DB5B40 #72DB40 #40C0DB
split-complementary
#A940DB #C0DB40 #40DB5B
monochromatic
#641987 #8A23BB #A940DB #C073E5 #D7A7EE

Accessibility & contrast

On white

4.73
#A940DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#A940DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A940DB
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A940DB#FFFFFF#000000##FFFFFF
##A940DB1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDF
Deuteranopia (green-blind)
#2F75D8
Tritanopia (blue-blind)
#A3628A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #a940db;
/* rgb */ color: rgb(169, 64, 219);
/* oklch */ color: oklch(58.6% 0.231 312.4);
Tailwind
colors: {
  custom: {
    50: '#c77ee7',
    500: '#a940db',
    950: '#000000',
  },
}
SCSS
$custom: #a940db;
$custom-light: #c77ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#a940db",
  "rgb": {
    "r": 169,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 280.645,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.5855,
    "c": 0.23069,
    "h": 312.4
  },
  "luminance": 0.17216
}

Semantic roles & 50–950 ramp

primary
#A940DB
secondary
#B0DC9B
accent
#EB3D75
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #A940DB

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

Preview Lab → · Contrast checker → · Palette generator →

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