#A640D5#A640D5

#A640D5 is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.8% C 0.224 H 312.9°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#A640D5
RGBrgb(166, 64, 213)
HSLhsl(281, 64%, 54%)
HSVhsv(281, 70%, 84%)
CMYKcmyk(22.1%, 70%, 0%, 16.5%)
CIE-LABlab(47.72, 64.11, -58.17)
CIE-LCHlch(47.72, 86.57, 317.78°)
OKLaboklab(57.76% 0.1526 -0.1642)
OKLCHoklch(57.76% 0.224 312.9)
XYZxyz(29.5674, 16.5788, 64.5804)
Luminance0.1658 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A640D5 #6FD540
analogous
#5C40D5 #A640D5 #D540B9
triadic
#A640D5 #D5A640 #40D5A6
tetradic
#A640D5 #D55C40 #6FD540 #40B9D5
square
#A640D5 #D55C40 #6FD540 #40B9D5
split-complementary
#A640D5 #B9D540 #40D55C
monochromatic
#601C7F #8527B1 #A640D5 #BD72E0 #D5A4EB

Accessibility & contrast

On white

4.87
#A640D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#A640D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A640D5
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A640D5#FFFFFF#000000##FFFFFF
##A640D51.004.874.324.87
#FFFFFF4.871.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD9
Deuteranopia (green-blind)
#3373D2
Tritanopia (blue-blind)
#A16086
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #a640d5;
/* rgb */ color: rgb(166, 64, 213);
/* oklch */ color: oklch(57.8% 0.224 312.9);
Tailwind
colors: {
  custom: {
    50: '#c57de3',
    500: '#a640d5',
    950: '#000000',
  },
}
SCSS
$custom: #a640d5;
$custom-light: #c57de3;
$custom-dark: #000000;
JSON
{
  "hex": "#a640d5",
  "rgb": {
    "r": 166,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 281.074,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.57764,
    "c": 0.22413,
    "h": 312.9
  },
  "luminance": 0.16578
}

Semantic roles & 50–950 ramp

primary
#A640D5
secondary
#ADD899
accent
#E74175
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130A15
muted
#827C84

Preview Lab

Preview with #A640D5

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

Preview Lab → · Contrast checker → · Palette generator →

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