#A940C2#A940C2

#A940C2 is a mid, highly saturated purple. Relative luminance 0.160; OKLCH L 56.9% C 0.208 H 319.3°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#A940C2
RGBrgb(169, 64, 194)
HSLhsl(288, 52%, 51%)
HSVhsv(288, 67%, 76%)
CMYKcmyk(12.9%, 67%, 0%, 23.9%)
CIE-LABlab(46.97, 60.99, -48.40)
CIE-LCHlch(46.97, 77.86, 321.56°)
OKLaboklab(56.94% 0.1576 -0.1355)
OKLCHoklch(56.94% 0.208 319.3)
XYZxyz(27.9319, 15.9981, 52.6451)
Luminance0.1600 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A940C2 #59C240
analogous
#6840C2 #A940C2 #C2409A
triadic
#A940C2 #C2A940 #40C2A9
tetradic
#A940C2 #C26840 #59C240 #409AC2
square
#A940C2 #C26840 #59C240 #409AC2
split-complementary
#A940C2 #9AC240 #40C268
monochromatic
#592167 #823095 #A940C2 #BE6ED1 #D39DE0

Accessibility & contrast

On white

5.00
#A940C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#A940C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A940C2
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A940C2#FFFFFF#000000##FFFFFF
##A940C21.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D68C6
Deuteranopia (green-blind)
#4973BF
Tritanopia (blue-blind)
#A9577C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a940c2;
/* rgb */ color: rgb(169, 64, 194);
/* oklch */ color: oklch(56.9% 0.208 319.3);
Tailwind
colors: {
  custom: {
    50: '#c67dd5',
    500: '#a940c2',
    950: '#000000',
  },
}
SCSS
$custom: #a940c2;
$custom-light: #c67dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#a940c2",
  "rgb": {
    "r": 169,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 288.462,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.56936,
    "c": 0.20781,
    "h": 319.3
  },
  "luminance": 0.15997
}

Semantic roles & 50–950 ramp

primary
#A940C2
secondary
#9DCC92
accent
#DB4D68
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A940C2

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

Preview Lab → · Contrast checker → · Palette generator →

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