#A640A2#A640A2

#A640A2 is a mid, vivid purple. Relative luminance 0.144; OKLCH L 54.7% C 0.178 H 329.3°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#A640A2
RGBrgb(166, 64, 162)
HSLhsl(302, 44%, 45%)
HSVhsv(302, 61%, 65%)
CMYKcmyk(0%, 61.4%, 2.4%, 34.9%)
CIE-LABlab(44.78, 54.41, -33.10)
CIE-LCHlch(44.78, 63.68, 328.68°)
OKLaboklab(54.7% 0.1531 -0.0911)
OKLCHoklch(54.7% 0.178 329.3)
XYZxyz(24.0806, 14.3840, 35.6835)
Luminance0.1438 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A640A2 #40A644
analogous
#7740A6 #A640A2 #A6406F
triadic
#A640A2 #A2A640 #40A2A6
tetradic
#A640A2 #A67740 #40A644 #406FA6
square
#A640A2 #A67740 #40A644 #406FA6
split-complementary
#A640A2 #6FA640 #40A677
monochromatic
#4E1E4C #7A2F77 #A640A2 #C261BE #D38DD0

Accessibility & contrast

On white

5.42
#A640A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#A640A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A640A2
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A640A2#FFFFFF#000000##FFFFFF
##A640A21.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3761A5
Deuteranopia (green-blind)
#5A6F9F
Tritanopia (blue-blind)
#AC4B6B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #a640a2;
/* rgb */ color: rgb(166, 64, 162);
/* oklch */ color: oklch(54.7% 0.178 329.3);
Tailwind
colors: {
  custom: {
    50: '#c37cbe',
    500: '#a640a2',
    950: '#000000',
  },
}
SCSS
$custom: #a640a2;
$custom-light: #c37cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#a640a2",
  "rgb": {
    "r": 166,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 302.353,
    "s": 44.348,
    "l": 45.098
  },
  "oklch": {
    "l": 0.54695,
    "c": 0.17816,
    "h": 329.3
  },
  "luminance": 0.14382
}

Semantic roles & 50–950 ramp

primary
#A640A2
secondary
#84BE86
accent
#D45954
background
#FCF7FB
surface
#F8EEF7
border
#D1C9D0
text
#130A12
muted
#827C81

Preview Lab

Preview with #A640A2

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

Preview Lab → · Contrast checker → · Palette generator →

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