#A640AA#A640AA

#A640AA is a mid, vivid purple. Relative luminance 0.147; OKLCH L 55.1% C 0.185 H 326.2°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#A640AA
RGBrgb(166, 64, 170)
HSLhsl(298, 45%, 46%)
HSVhsv(298, 62%, 67%)
CMYKcmyk(2.4%, 62.4%, 0%, 33.3%)
CIE-LABlab(45.19, 55.82, -37.20)
CIE-LCHlch(45.19, 67.08, 326.32°)
OKLaboklab(55.13% 0.1538 -0.1029)
OKLCHoklch(55.13% 0.185 326.2)
XYZxyz(24.8145, 14.6776, 39.5485)
Luminance0.1468 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A640AA #44AA40
analogous
#7140AA #A640AA #AA4079
triadic
#A640AA #AAA640 #40AAA6
tetradic
#A640AA #AA7140 #44AA40 #4079AA
square
#A640AA #AA7140 #44AA40 #4079AA
split-complementary
#A640AA #79AA40 #40AA71
monochromatic
#4F1F51 #7B2F7E #A640AA #C163C4 #D28FD5

Accessibility & contrast

On white

5.34
#A640AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#A640AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A640AA
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A640AA#FFFFFF#000000##FFFFFF
##A640AA1.005.343.945.34
#FFFFFF5.341.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3063AD
Deuteranopia (green-blind)
#566FA7
Tritanopia (blue-blind)
#AA4E6F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #a640aa;
/* rgb */ color: rgb(166, 64, 170);
/* oklch */ color: oklch(55.1% 0.185 326.2);
Tailwind
colors: {
  custom: {
    50: '#c37cc4',
    500: '#a640aa',
    950: '#000000',
  },
}
SCSS
$custom: #a640aa;
$custom-light: #c37cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#a640aa",
  "rgb": {
    "r": 166,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 297.736,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.55127,
    "c": 0.18502,
    "h": 326.2
  },
  "luminance": 0.14676
}

Semantic roles & 50–950 ramp

primary
#A640AA
secondary
#88C086
accent
#D55358
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A12
muted
#827C81

Preview Lab

Preview with #A640AA

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

Preview Lab → · Contrast checker → · Palette generator →

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