#A640C5#A640C5

#A640C5 is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 56.7% C 0.209 H 317.3°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#A640C5
RGBrgb(166, 64, 197)
HSLhsl(286, 53%, 51%)
HSVhsv(286, 68%, 77%)
CMYKcmyk(15.7%, 67.5%, 0%, 22.7%)
CIE-LABlab(46.72, 60.90, -50.57)
CIE-LCHlch(46.72, 79.16, 320.30°)
OKLaboklab(56.72% 0.1539 -0.1419)
OKLCHoklch(56.72% 0.209 317.3)
XYZxyz(27.6359, 15.8061, 54.4077)
Luminance0.1580 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A640C5 #5FC540
analogous
#6340C5 #A640C5 #C540A1
triadic
#A640C5 #C5A640 #40C5A6
tetradic
#A640C5 #C56340 #5FC540 #40A1C5
square
#A640C5 #C56340 #5FC540 #40A1C5
split-complementary
#A640C5 #A1C540 #40C563
monochromatic
#59206A #802F99 #A640C5 #BC6FD3 #D29EE2

Accessibility & contrast

On white

5.05
#A640C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#A640C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A640C5
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A640C5#FFFFFF#000000##FFFFFF
##A640C51.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068C9
Deuteranopia (green-blind)
#4372C2
Tritanopia (blue-blind)
#A5597E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a640c5;
/* rgb */ color: rgb(166, 64, 197);
/* oklch */ color: oklch(56.7% 0.209 317.3);
Tailwind
colors: {
  custom: {
    50: '#c47dd7',
    500: '#a640c5',
    950: '#000000',
  },
}
SCSS
$custom: #a640c5;
$custom-light: #c47dd7;
$custom-dark: #000000;
JSON
{
  "hex": "#a640c5",
  "rgb": {
    "r": 166,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 286.015,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.56724,
    "c": 0.2093,
    "h": 317.3
  },
  "luminance": 0.15805
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A640C5

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

Preview Lab → · Contrast checker → · Palette generator →

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