#A940BA#A940BA

#A940BA is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.5% C 0.201 H 321.8°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#A940BA
RGBrgb(169, 64, 186)
HSLhsl(292, 49%, 49%)
HSVhsv(292, 66%, 73%)
CMYKcmyk(9.1%, 65.6%, 0%, 27.1%)
CIE-LABlab(46.51, 59.48, -44.48)
CIE-LCHlch(46.51, 74.27, 323.21°)
OKLaboklab(56.45% 0.1577 -0.124)
OKLCHoklch(56.45% 0.201 321.8)
XYZxyz(27.0576, 15.6484, 48.0401)
Luminance0.1565 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A940BA #51BA40
analogous
#6C40BA #A940BA #BA408E
triadic
#A940BA #BAA940 #40BAA9
tetradic
#A940BA #BA6C40 #51BA40 #408EBA
square
#A940BA #BA6C40 #51BA40 #408EBA
split-complementary
#A940BA #8EBA40 #40BA6C
monochromatic
#56215F #80308C #A940BA #BF6BCC #D299DC

Accessibility & contrast

On white

5.09
#A940BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#A940BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A940BA
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A940BA#FFFFFF#000000##FFFFFF
##A940BA1.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F67BE
Deuteranopia (green-blind)
#4F72B7
Tritanopia (blue-blind)
#AB5478
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #a940ba;
/* rgb */ color: rgb(169, 64, 186);
/* oklch */ color: oklch(56.5% 0.201 321.8);
Tailwind
colors: {
  custom: {
    50: '#c67dcf',
    500: '#a940ba',
    950: '#000000',
  },
}
SCSS
$custom: #a940ba;
$custom-light: #c67dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#a940ba",
  "rgb": {
    "r": 169,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 291.639,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.56454,
    "c": 0.20063,
    "h": 321.8
  },
  "luminance": 0.15647
}

Semantic roles & 50–950 ramp

primary
#A940BA
secondary
#96C88E
accent
#D84F63
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A940BA

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

Preview Lab → · Contrast checker → · Palette generator →

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