#A940AF#A940AF

#A940AF is a mid, vivid purple. Relative luminance 0.152; OKLCH L 55.8% C 0.191 H 325.5°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#A940AF
RGBrgb(169, 64, 175)
HSLhsl(297, 46%, 47%)
HSVhsv(297, 63%, 69%)
CMYKcmyk(3.4%, 63.4%, 0%, 31.4%)
CIE-LABlab(45.90, 57.46, -38.99)
CIE-LCHlch(45.90, 69.44, 325.84°)
OKLaboklab(55.82% 0.1575 -0.108)
OKLCHoklch(55.82% 0.191 325.5)
XYZxyz(25.9329, 15.1985, 42.1168)
Luminance0.1520 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A940AF #46AF40
analogous
#7240AF #A940AF #AF407E
triadic
#A940AF #AFA940 #40AFA9
tetradic
#A940AF #AF7240 #46AF40 #407EAF
square
#A940AF #AF7240 #46AF40 #407EAF
split-complementary
#A940AF #7EAF40 #40AF72
monochromatic
#521F55 #7E3082 #A940AF #C265C7 #D392D7

Accessibility & contrast

On white

5.20
#A940AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#A940AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A940AF
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A940AF#FFFFFF#000000##FFFFFF
##A940AF1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D64B2
Deuteranopia (green-blind)
#5671AC
Tritanopia (blue-blind)
#AD5072
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a940af;
/* rgb */ color: rgb(169, 64, 175);
/* oklch */ color: oklch(55.8% 0.191 325.5);
Tailwind
colors: {
  custom: {
    50: '#c67cc7',
    500: '#a940af',
    950: '#000000',
  },
}
SCSS
$custom: #a940af;
$custom-light: #c67cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#a940af",
  "rgb": {
    "r": 169,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 296.757,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.55822,
    "c": 0.19095,
    "h": 325.5
  },
  "luminance": 0.15197
}

Semantic roles & 50–950 ramp

primary
#A940AF
secondary
#8BC388
accent
#D65259
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #A940AF

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

Preview Lab → · Contrast checker → · Palette generator →

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