#A940C0#A940C0

#A940C0 is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 56.8% C 0.206 H 319.9°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#A940C0
RGBrgb(169, 64, 192)
HSLhsl(289, 50%, 50%)
HSVhsv(289, 67%, 75%)
CMYKcmyk(12%, 66.7%, 0%, 24.7%)
CIE-LABlab(46.85, 60.61, -47.43)
CIE-LCHlch(46.85, 76.96, 321.96°)
OKLaboklab(56.81% 0.1576 -0.1326)
OKLCHoklch(56.81% 0.206 319.9)
XYZxyz(27.7088, 15.9089, 51.4701)
Luminance0.1591 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A940C0 #57C040
analogous
#6940C0 #A940C0 #C04097
triadic
#A940C0 #C0A940 #40C0A9
tetradic
#A940C0 #C06940 #57C040 #4097C0
square
#A940C0 #C06940 #57C040 #4097C0
split-complementary
#A940C0 #97C040 #40C069
monochromatic
#582164 #813092 #A940C0 #BE6ECF #D29CDE

Accessibility & contrast

On white

5.02
#A940C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#A940C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A940C0
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A940C0#FFFFFF#000000##FFFFFF
##A940C01.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1368C4
Deuteranopia (green-blind)
#4B73BD
Tritanopia (blue-blind)
#AA577B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a940c0;
/* rgb */ color: rgb(169, 64, 192);
/* oklch */ color: oklch(56.8% 0.206 319.9);
Tailwind
colors: {
  custom: {
    50: '#c67dd4',
    500: '#a940c0',
    950: '#000000',
  },
}
SCSS
$custom: #a940c0;
$custom-light: #c67dd4;
$custom-dark: #000000;
JSON
{
  "hex": "#a940c0",
  "rgb": {
    "r": 169,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 289.219,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.56814,
    "c": 0.206,
    "h": 319.9
  },
  "luminance": 0.15908
}

Semantic roles & 50–950 ramp

primary
#A940C0
secondary
#9CCB91
accent
#DA4E67
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A940C0

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

Preview Lab → · Contrast checker → · Palette generator →

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