#A640C8#A640C8

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

Color values

HEX#A640C8
RGBrgb(166, 64, 200)
HSLhsl(285, 55%, 52%)
HSVhsv(285, 68%, 78%)
CMYKcmyk(17%, 68%, 0%, 21.6%)
CIE-LABlab(46.90, 61.49, -52.01)
CIE-LCHlch(46.90, 80.54, 319.77°)
OKLaboklab(56.91% 0.1537 -0.1461)
OKLCHoklch(56.91% 0.212 316.4)
XYZxyz(27.9830, 15.9450, 56.2360)
Luminance0.1594 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A640C8 #62C840
analogous
#6240C8 #A640C8 #C840A6
triadic
#A640C8 #C8A640 #40C8A6
tetradic
#A640C8 #C86240 #62C840 #40A6C8
square
#A640C8 #C86240 #62C840 #40A6C8
split-complementary
#A640C8 #A6C840 #40C862
monochromatic
#5A206E #812D9D #A640C8 #BC70D6 #D29FE3

Accessibility & contrast

On white

5.01
#A640C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#A640C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A640C8
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A640C8#FFFFFF#000000##FFFFFF
##A640C81.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CC
Deuteranopia (green-blind)
#4172C5
Tritanopia (blue-blind)
#A45A7F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a640c8;
/* rgb */ color: rgb(166, 64, 200);
/* oklch */ color: oklch(56.9% 0.212 316.4);
Tailwind
colors: {
  custom: {
    50: '#c47dd9',
    500: '#a640c8',
    950: '#000000',
  },
}
SCSS
$custom: #a640c8;
$custom-light: #c47dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#a640c8",
  "rgb": {
    "r": 166,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 285,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.56914,
    "c": 0.21207,
    "h": 316.4
  },
  "luminance": 0.15944
}

Semantic roles & 50–950 ramp

primary
#A640C8
secondary
#A3D094
accent
#DF496F
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A640C8

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

Preview Lab → · Contrast checker → · Palette generator →

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