#A640C2#A640C2

#A640C2 is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.5% C 0.207 H 318.2°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#A640C2
RGBrgb(166, 64, 194)
HSLhsl(287, 52%, 51%)
HSVhsv(287, 67%, 76%)
CMYKcmyk(14.4%, 67%, 0%, 23.9%)
CIE-LABlab(46.54, 60.32, -49.12)
CIE-LCHlch(46.54, 77.79, 320.84°)
OKLaboklab(56.54% 0.154 -0.1376)
OKLCHoklch(56.54% 0.207 318.2)
XYZxyz(27.2955, 15.6700, 52.6153)
Luminance0.1567 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A640C2 #5CC240
analogous
#6540C2 #A640C2 #C2409D
triadic
#A640C2 #C2A640 #40C2A6
tetradic
#A640C2 #C26540 #5CC240 #409DC2
square
#A640C2 #C26540 #5CC240 #409DC2
split-complementary
#A640C2 #9DC240 #40C265
monochromatic
#582167 #7F3095 #A640C2 #BC6ED1 #D19DE0

Accessibility & contrast

On white

5.08
#A640C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#A640C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A640C2
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A640C2#FFFFFF#000000##FFFFFF
##A640C21.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0568C6
Deuteranopia (green-blind)
#4672BF
Tritanopia (blue-blind)
#A5587C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #a640c2;
/* rgb */ color: rgb(166, 64, 194);
/* oklch */ color: oklch(56.5% 0.207 318.2);
Tailwind
colors: {
  custom: {
    50: '#c47dd5',
    500: '#a640c2',
    950: '#000000',
  },
}
SCSS
$custom: #a640c2;
$custom-light: #c47dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#a640c2",
  "rgb": {
    "r": 166,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 287.077,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.56536,
    "c": 0.20654,
    "h": 318.2
  },
  "luminance": 0.15669
}

Semantic roles & 50–950 ramp

primary
#A640C2
secondary
#9ECC92
accent
#DB4D6B
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A640C2

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

Preview Lab → · Contrast checker → · Palette generator →

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