#A640C6#A640C6

#A640C6 is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 56.8% C 0.210 H 317.0°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#A640C6
RGBrgb(166, 64, 198)
HSLhsl(286, 54%, 51%)
HSVhsv(286, 68%, 78%)
CMYKcmyk(16.2%, 67.7%, 0%, 22.4%)
CIE-LABlab(46.78, 61.10, -51.05)
CIE-LCHlch(46.78, 79.62, 320.12°)
OKLaboklab(56.79% 0.1538 -0.1433)
OKLCHoklch(56.79% 0.21 317)
XYZxyz(27.7508, 15.8521, 55.0131)
Luminance0.1585 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A640C6 #60C640
analogous
#6340C6 #A640C6 #C640A3
triadic
#A640C6 #C6A640 #40C6A6
tetradic
#A640C6 #C66340 #60C640 #40A3C6
square
#A640C6 #C66340 #60C640 #40A3C6
split-complementary
#A640C6 #A3C640 #40C663
monochromatic
#5A206C #812E9B #A640C6 #BC6FD4 #D29EE2

Accessibility & contrast

On white

5.04
#A640C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#A640C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A640C6
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A640C6#FFFFFF#000000##FFFFFF
##A640C61.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CA
Deuteranopia (green-blind)
#4372C3
Tritanopia (blue-blind)
#A55A7E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a640c6;
/* rgb */ color: rgb(166, 64, 198);
/* oklch */ color: oklch(56.8% 0.210 317.0);
Tailwind
colors: {
  custom: {
    50: '#c47dd8',
    500: '#a640c6',
    950: '#000000',
  },
}
SCSS
$custom: #a640c6;
$custom-light: #c47dd8;
$custom-dark: #000000;
JSON
{
  "hex": "#a640c6",
  "rgb": {
    "r": 166,
    "g": 64,
    "b": 198
  },
  "hsl": {
    "h": 285.672,
    "s": 54.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.56787,
    "c": 0.21022,
    "h": 317
  },
  "luminance": 0.15851
}

Semantic roles & 50–950 ramp

primary
#A640C6
secondary
#A1CE93
accent
#DD4A6E
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A640C6

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

Preview Lab → · Contrast checker → · Palette generator →

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