#A640D7#A640D7

#A640D7 is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 57.9% C 0.226 H 312.4°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#A640D7
RGBrgb(166, 64, 215)
HSLhsl(281, 65%, 55%)
HSVhsv(281, 70%, 84%)
CMYKcmyk(22.8%, 70.2%, 0%, 15.7%)
CIE-LABlab(47.86, 64.52, -59.10)
CIE-LCHlch(47.86, 87.50, 317.51°)
OKLaboklab(57.9% 0.1524 -0.1669)
OKLCHoklch(57.9% 0.226 312.4)
XYZxyz(29.8228, 16.6809, 65.9255)
Luminance0.1668 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A640D7 #71D740
analogous
#5B40D7 #A640D7 #D740BC
triadic
#A640D7 #D7A640 #40D7A6
tetradic
#A640D7 #D75B40 #71D740 #40BCD7
square
#A640D7 #D75B40 #71D740 #40BCD7
split-complementary
#A640D7 #BCD740 #40D75B
monochromatic
#601B81 #8626B4 #A640D7 #BE73E2 #D5A5EC

Accessibility & contrast

On white

4.84
#A640D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#A640D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A640D7
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A640D7#FFFFFF#000000##FFFFFF
##A640D71.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDB
Deuteranopia (green-blind)
#3074D4
Tritanopia (blue-blind)
#A06087
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #a640d7;
/* rgb */ color: rgb(166, 64, 215);
/* oklch */ color: oklch(57.9% 0.226 312.4);
Tailwind
colors: {
  custom: {
    50: '#c57de4',
    500: '#a640d7',
    950: '#000000',
  },
}
SCSS
$custom: #a640d7;
$custom-light: #c57de4;
$custom-dark: #000000;
JSON
{
  "hex": "#a640d7",
  "rgb": {
    "r": 166,
    "g": 64,
    "b": 215
  },
  "hsl": {
    "h": 280.53,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.57899,
    "c": 0.226,
    "h": 312.4
  },
  "luminance": 0.1668
}

Semantic roles & 50–950 ramp

primary
#A640D7
secondary
#AED99A
accent
#E83F76
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A640D7

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

Preview Lab → · Contrast checker → · Palette generator →

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