#A640D1#A640D1

#A640D1 is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.5% C 0.220 H 314.0°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#A640D1
RGBrgb(166, 64, 209)
HSLhsl(282, 61%, 54%)
HSVhsv(282, 69%, 82%)
CMYKcmyk(20.6%, 69.4%, 0%, 18%)
CIE-LABlab(47.47, 63.30, -56.29)
CIE-LCHlch(47.47, 84.71, 318.35°)
OKLaboklab(57.5% 0.153 -0.1587)
OKLCHoklch(57.5% 0.22 314)
XYZxyz(29.0659, 16.3782, 61.9394)
Luminance0.1638 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A640D1 #6BD140
analogous
#5D40D1 #A640D1 #D140B3
triadic
#A640D1 #D1A640 #40D1A6
tetradic
#A640D1 #D15D40 #6BD140 #40B3D1
square
#A640D1 #D15D40 #6BD140 #40B3D1
split-complementary
#A640D1 #B3D140 #40D15D
monochromatic
#5E1D79 #8429AB #A640D1 #BD71DD #D4A3E9

Accessibility & contrast

On white

4.91
#A640D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#A640D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A640D1
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A640D1#FFFFFF#000000##FFFFFF
##A640D11.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD5
Deuteranopia (green-blind)
#3773CE
Tritanopia (blue-blind)
#A25E84
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #a640d1;
/* rgb */ color: rgb(166, 64, 209);
/* oklch */ color: oklch(57.5% 0.220 314.0);
Tailwind
colors: {
  custom: {
    50: '#c57de0',
    500: '#a640d1',
    950: '#000000',
  },
}
SCSS
$custom: #a640d1;
$custom-light: #c57de0;
$custom-dark: #000000;
JSON
{
  "hex": "#a640d1",
  "rgb": {
    "r": 166,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 282.207,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.57498,
    "c": 0.22041,
    "h": 314
  },
  "luminance": 0.16377
}

Semantic roles & 50–950 ramp

primary
#A640D1
secondary
#AAD597
accent
#E44473
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A640D1

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

Preview Lab → · Contrast checker → · Palette generator →

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