#A940CA#A940CA

#A940CA is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.4% C 0.215 H 317.0°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#A940CA
RGBrgb(169, 64, 202)
HSLhsl(286, 57%, 52%)
HSVhsv(286, 68%, 79%)
CMYKcmyk(16.3%, 68.3%, 0%, 20.8%)
CIE-LABlab(47.45, 62.54, -52.26)
CIE-LCHlch(47.45, 81.50, 320.12°)
OKLaboklab(57.44% 0.1572 -0.1467)
OKLCHoklch(57.44% 0.215 317)
XYZxyz(28.8547, 16.3672, 57.5049)
Luminance0.1637 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A940CA #61CA40
analogous
#6440CA #A940CA #CA40A6
triadic
#A940CA #CAA940 #40CAA9
tetradic
#A940CA #CA6440 #61CA40 #40A6CA
square
#A940CA #CA6440 #61CA40 #40A6CA
split-complementary
#A940CA #A6CA40 #40CA64
monochromatic
#5D1F70 #852CA0 #A940CA #BF70D7 #D4A0E5

Accessibility & contrast

On white

4.91
#A940CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#A940CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A940CA
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A940CA#FFFFFF#000000##FFFFFF
##A940CA1.004.914.274.91
#FFFFFF4.911.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACE
Deuteranopia (green-blind)
#4274C7
Tritanopia (blue-blind)
#A75B80
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #a940ca;
/* rgb */ color: rgb(169, 64, 202);
/* oklch */ color: oklch(57.4% 0.215 317.0);
Tailwind
colors: {
  custom: {
    50: '#c67ddb',
    500: '#a940ca',
    950: '#000000',
  },
}
SCSS
$custom: #a940ca;
$custom-light: #c67ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#a940ca",
  "rgb": {
    "r": 169,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 285.652,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.57435,
    "c": 0.21507,
    "h": 317
  },
  "luminance": 0.16366
}

Semantic roles & 50–950 ramp

primary
#A940CA
secondary
#A3D195
accent
#E0486C
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A940CA

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

Preview Lab → · Contrast checker → · Palette generator →

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