#A640CD#A640CD

#A640CD is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.2% C 0.217 H 315.0°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#A640CD
RGBrgb(166, 64, 205)
HSLhsl(283, 59%, 53%)
HSVhsv(283, 69%, 80%)
CMYKcmyk(19%, 68.8%, 0%, 19.6%)
CIE-LABlab(47.21, 62.49, -54.40)
CIE-LCHlch(47.21, 82.85, 318.96°)
OKLaboklab(57.24% 0.1533 -0.1531)
OKLCHoklch(57.24% 0.217 315)
XYZxyz(28.5769, 16.1826, 59.3640)
Luminance0.1618 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A640CD #67CD40
analogous
#5F40CD #A640CD #CD40AE
triadic
#A640CD #CDA640 #40CDA6
tetradic
#A640CD #CD5F40 #67CD40 #40AECD
square
#A640CD #CD5F40 #67CD40 #40AECD
split-complementary
#A640CD #AECD40 #40CD5F
monochromatic
#5C1E74 #832BA5 #A640CD #BD71DA #D3A1E6

Accessibility & contrast

On white

4.96
#A640CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#A640CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A640CD
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A640CD#FFFFFF#000000##FFFFFF
##A640CD1.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD1
Deuteranopia (green-blind)
#3C73CA
Tritanopia (blue-blind)
#A35C82
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #a640cd;
/* rgb */ color: rgb(166, 64, 205);
/* oklch */ color: oklch(57.2% 0.217 315.0);
Tailwind
colors: {
  custom: {
    50: '#c47ddd',
    500: '#a640cd',
    950: '#000000',
  },
}
SCSS
$custom: #a640cd;
$custom-light: #c47ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#a640cd",
  "rgb": {
    "r": 166,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 283.404,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.57236,
    "c": 0.21669,
    "h": 315
  },
  "luminance": 0.16182
}

Semantic roles & 50–950 ramp

primary
#A640CD
secondary
#A7D396
accent
#E24671
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A640CD

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

Preview Lab → · Contrast checker → · Palette generator →

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