#A940B9#A940B9

#A940B9 is a mid, vivid purple. Relative luminance 0.156; OKLCH L 56.4% C 0.200 H 322.1°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#A940B9
RGBrgb(169, 64, 185)
HSLhsl(292, 49%, 49%)
HSVhsv(292, 65%, 73%)
CMYKcmyk(8.6%, 65.4%, 0%, 27.5%)
CIE-LABlab(46.45, 59.29, -43.99)
CIE-LCHlch(46.45, 73.83, 323.43°)
OKLaboklab(56.4% 0.1577 -0.1226)
OKLCHoklch(56.4% 0.2 322.1)
XYZxyz(26.9516, 15.6060, 47.4822)
Luminance0.1560 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A940B9 #50B940
analogous
#6D40B9 #A940B9 #B9408D
triadic
#A940B9 #B9A940 #40B9A9
tetradic
#A940B9 #B96D40 #50B940 #408DB9
square
#A940B9 #B96D40 #50B940 #408DB9
split-complementary
#A940B9 #8DB940 #40B96D
monochromatic
#56215E #7F308C #A940B9 #BF6BCC #D298DB

Accessibility & contrast

On white

5.10
#A940B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#A940B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A940B9
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A940B9#FFFFFF#000000##FFFFFF
##A940B91.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2166BD
Deuteranopia (green-blind)
#5072B6
Tritanopia (blue-blind)
#AB5477
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #a940b9;
/* rgb */ color: rgb(169, 64, 185);
/* oklch */ color: oklch(56.4% 0.200 322.1);
Tailwind
colors: {
  custom: {
    50: '#c67dce',
    500: '#a940b9',
    950: '#000000',
  },
}
SCSS
$custom: #a940b9;
$custom-light: #c67dce;
$custom-dark: #000000;
JSON
{
  "hex": "#a940b9",
  "rgb": {
    "r": 169,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 292.066,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.56395,
    "c": 0.19974,
    "h": 322.1
  },
  "luminance": 0.15605
}

Semantic roles & 50–950 ramp

primary
#A940B9
secondary
#95C78E
accent
#D85062
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A940B9

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

Preview Lab → · Contrast checker → · Palette generator →

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