#A640B9#A640B9

#A640B9 is a mid, vivid purple. Relative luminance 0.153; OKLCH L 56.0% C 0.198 H 321.0°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#A640B9
RGBrgb(166, 64, 185)
HSLhsl(291, 49%, 49%)
HSVhsv(291, 65%, 73%)
CMYKcmyk(10.3%, 65.4%, 0%, 27.5%)
CIE-LABlab(46.01, 58.59, -44.72)
CIE-LCHlch(46.01, 73.70, 322.65°)
OKLaboklab(55.99% 0.1542 -0.1248)
OKLCHoklch(55.99% 0.198 321)
XYZxyz(26.3152, 15.2779, 47.4523)
Luminance0.1528 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A640B9 #53B940
analogous
#6A40B9 #A640B9 #B94090
triadic
#A640B9 #B9A640 #40B9A6
tetradic
#A640B9 #B96A40 #53B940 #4090B9
square
#A640B9 #B96A40 #53B940 #4090B9
split-complementary
#A640B9 #90B940 #40B96A
monochromatic
#54215E #7D308C #A640B9 #BC6BCC #D198DB

Accessibility & contrast

On white

5.18
#A640B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#A640B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A640B9
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A640B9#FFFFFF#000000##FFFFFF
##A640B91.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E66BD
Deuteranopia (green-blind)
#4D71B6
Tritanopia (blue-blind)
#A75477
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a640b9;
/* rgb */ color: rgb(166, 64, 185);
/* oklch */ color: oklch(56.0% 0.198 321.0);
Tailwind
colors: {
  custom: {
    50: '#c47cce',
    500: '#a640b9',
    950: '#000000',
  },
}
SCSS
$custom: #a640b9;
$custom-light: #c47cce;
$custom-dark: #000000;
JSON
{
  "hex": "#a640b9",
  "rgb": {
    "r": 166,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 290.579,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.55988,
    "c": 0.19835,
    "h": 321
  },
  "luminance": 0.15277
}

Semantic roles & 50–950 ramp

primary
#A640B9
secondary
#97C78E
accent
#D85065
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A640B9

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

Preview Lab → · Contrast checker → · Palette generator →

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