#A640C7#A640C7

#A640C7 is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 56.9% C 0.211 H 316.7°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#A640C7
RGBrgb(166, 64, 199)
HSLhsl(285, 55%, 52%)
HSVhsv(285, 68%, 78%)
CMYKcmyk(16.6%, 67.8%, 0%, 22%)
CIE-LABlab(46.84, 61.30, -51.53)
CIE-LCHlch(46.84, 80.08, 319.95°)
OKLaboklab(56.85% 0.1538 -0.1447)
OKLCHoklch(56.85% 0.211 316.7)
XYZxyz(27.8665, 15.8984, 55.6226)
Luminance0.1590 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A640C7 #61C740
analogous
#6340C7 #A640C7 #C740A5
triadic
#A640C7 #C7A640 #40C7A6
tetradic
#A640C7 #C76340 #61C740 #40A5C7
square
#A640C7 #C76340 #61C740 #40A5C7
split-complementary
#A640C7 #A5C740 #40C763
monochromatic
#5A206D #812E9C #A640C7 #BC6FD5 #D29FE3

Accessibility & contrast

On white

5.02
#A640C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#A640C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A640C7
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A640C7#FFFFFF#000000##FFFFFF
##A640C71.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CB
Deuteranopia (green-blind)
#4272C4
Tritanopia (blue-blind)
#A45A7F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a640c7;
/* rgb */ color: rgb(166, 64, 199);
/* oklch */ color: oklch(56.9% 0.211 316.7);
Tailwind
colors: {
  custom: {
    50: '#c47dd9',
    500: '#a640c7',
    950: '#000000',
  },
}
SCSS
$custom: #a640c7;
$custom-light: #c47dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#a640c7",
  "rgb": {
    "r": 166,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 285.333,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.5685,
    "c": 0.21114,
    "h": 316.7
  },
  "luminance": 0.15897
}

Semantic roles & 50–950 ramp

primary
#A640C7
secondary
#A2CF94
accent
#DE4A6E
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A15
muted
#827C83

Preview Lab

Preview with #A640C7

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

Preview Lab → · Contrast checker → · Palette generator →

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