#A940B2#A940B2

#A940B2 is a mid, vivid purple. Relative luminance 0.153; OKLCH L 56.0% C 0.194 H 324.5°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#A940B2
RGBrgb(169, 64, 178)
HSLhsl(295, 47%, 47%)
HSVhsv(295, 64%, 70%)
CMYKcmyk(5.1%, 64%, 0%, 30.2%)
CIE-LABlab(46.07, 58.01, -40.50)
CIE-LCHlch(46.07, 70.75, 325.08°)
OKLaboklab(55.99% 0.1576 -0.1124)
OKLCHoklch(55.99% 0.194 324.5)
XYZxyz(26.2308, 15.3177, 43.6858)
Luminance0.1532 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A940B2 #49B240
analogous
#7040B2 #A940B2 #B24082
triadic
#A940B2 #B2A940 #40B2A9
tetradic
#A940B2 #B27040 #49B240 #4082B2
square
#A940B2 #B27040 #49B240 #4082B2
split-complementary
#A940B2 #82B240 #40B270
monochromatic
#542058 #7E3085 #A940B2 #C167C8 #D394D8

Accessibility & contrast

On white

5.17
#A940B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#A940B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A940B2
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A940B2#FFFFFF#000000##FFFFFF
##A940B21.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A65B5
Deuteranopia (green-blind)
#5472AF
Tritanopia (blue-blind)
#AC5173
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a940b2;
/* rgb */ color: rgb(169, 64, 178);
/* oklch */ color: oklch(56.0% 0.194 324.5);
Tailwind
colors: {
  custom: {
    50: '#c67cc9',
    500: '#a940b2',
    950: '#000000',
  },
}
SCSS
$custom: #a940b2;
$custom-light: #c67cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#a940b2",
  "rgb": {
    "r": 169,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 295.263,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.55991,
    "c": 0.19357,
    "h": 324.5
  },
  "luminance": 0.15316
}

Semantic roles & 50–950 ramp

primary
#A940B2
secondary
#8EC48A
accent
#D7515C
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #A940B2

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

Preview Lab → · Contrast checker → · Palette generator →

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