#A640AF#A640AF

#A640AF is a mid, vivid purple. Relative luminance 0.149; OKLCH L 55.4% C 0.189 H 324.4°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#A640AF
RGBrgb(166, 64, 175)
HSLhsl(295, 46%, 47%)
HSVhsv(295, 63%, 69%)
CMYKcmyk(5.1%, 63.4%, 0%, 31.4%)
CIE-LABlab(45.46, 56.72, -39.73)
CIE-LCHlch(45.46, 69.25, 324.99°)
OKLaboklab(55.41% 0.154 -0.1103)
OKLCHoklch(55.41% 0.189 324.4)
XYZxyz(25.2965, 14.8704, 42.0870)
Luminance0.1487 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A640AF #49AF40
analogous
#6F40AF #A640AF #AF4081
triadic
#A640AF #AFA640 #40AFA6
tetradic
#A640AF #AF6F40 #49AF40 #4081AF
square
#A640AF #AF6F40 #49AF40 #4081AF
split-complementary
#A640AF #81AF40 #40AF6F
monochromatic
#511F55 #7B3082 #A640AF #BF65C7 #D292D7

Accessibility & contrast

On white

5.28
#A640AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#A640AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A640AF
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A640AF#FFFFFF#000000##FFFFFF
##A640AF1.005.283.975.28
#FFFFFF5.281.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B64B2
Deuteranopia (green-blind)
#5370AC
Tritanopia (blue-blind)
#A95072
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a640af;
/* rgb */ color: rgb(166, 64, 175);
/* oklch */ color: oklch(55.4% 0.189 324.4);
Tailwind
colors: {
  custom: {
    50: '#c37cc7',
    500: '#a640af',
    950: '#000000',
  },
}
SCSS
$custom: #a640af;
$custom-light: #c37cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#a640af",
  "rgb": {
    "r": 166,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 295.135,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.55406,
    "c": 0.18941,
    "h": 324.4
  },
  "luminance": 0.14869
}

Semantic roles & 50–950 ramp

primary
#A640AF
secondary
#8DC388
accent
#D6525C
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #A640AF

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

Preview Lab → · Contrast checker → · Palette generator →

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