#A640A5#A640A5

#A640A5 is a mid, vivid purple. Relative luminance 0.145; OKLCH L 54.9% C 0.181 H 328.1°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#A640A5
RGBrgb(166, 64, 165)
HSLhsl(301, 44%, 45%)
HSVhsv(301, 61%, 65%)
CMYKcmyk(0%, 61.4%, 0.6%, 34.9%)
CIE-LABlab(44.93, 54.93, -34.64)
CIE-LCHlch(44.93, 64.94, 327.76°)
OKLaboklab(54.85% 0.1534 -0.0955)
OKLCHoklch(54.85% 0.181 328.1)
XYZxyz(24.3505, 14.4920, 37.1047)
Luminance0.1449 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A640A5 #40A641
analogous
#7440A6 #A640A5 #A64072
triadic
#A640A5 #A5A640 #40A5A6
tetradic
#A640A5 #A67440 #40A641 #4072A6
square
#A640A5 #A67440 #40A641 #4072A6
split-complementary
#A640A5 #72A640 #40A674
monochromatic
#4E1E4D #7A2F79 #A640A5 #C261C1 #D38DD2

Accessibility & contrast

On white

5.39
#A640A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#A640A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A640A5
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A640A5#FFFFFF#000000##FFFFFF
##A640A51.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3462A8
Deuteranopia (green-blind)
#586FA2
Tritanopia (blue-blind)
#AB4D6D
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #a640a5;
/* rgb */ color: rgb(166, 64, 165);
/* oklch */ color: oklch(54.9% 0.181 328.1);
Tailwind
colors: {
  custom: {
    50: '#c37cc0',
    500: '#a640a5',
    950: '#000000',
  },
}
SCSS
$custom: #a640a5;
$custom-light: #c37cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#a640a5",
  "rgb": {
    "r": 166,
    "g": 64,
    "b": 165
  },
  "hsl": {
    "h": 300.588,
    "s": 44.348,
    "l": 45.098
  },
  "oklch": {
    "l": 0.54854,
    "c": 0.18071,
    "h": 328.1
  },
  "luminance": 0.1449
}

Semantic roles & 50–950 ramp

primary
#A640A5
secondary
#84BE84
accent
#D45554
background
#FCF7FB
surface
#F8EEF7
border
#D1C9D0
text
#130A12
muted
#827C81

Preview Lab

Preview with #A640A5

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

Preview Lab → · Contrast checker → · Palette generator →

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