#A640AB#A640AB

#A640AB is a mid, vivid purple. Relative luminance 0.147; OKLCH L 55.2% C 0.186 H 325.8°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#A640AB
RGBrgb(166, 64, 171)
HSLhsl(297, 46%, 46%)
HSVhsv(297, 63%, 67%)
CMYKcmyk(2.9%, 62.6%, 0%, 32.9%)
CIE-LABlab(45.24, 56.00, -37.71)
CIE-LCHlch(45.24, 67.51, 326.04°)
OKLaboklab(55.18% 0.1538 -0.1044)
OKLCHoklch(55.18% 0.186 325.8)
XYZxyz(24.9094, 14.7156, 40.0485)
Luminance0.1471 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A640AB #45AB40
analogous
#7040AB #A640AB #AB407A
triadic
#A640AB #ABA640 #40ABA6
tetradic
#A640AB #AB7040 #45AB40 #407AAB
square
#A640AB #AB7040 #45AB40 #407AAB
split-complementary
#A640AB #7AAB40 #40AB70
monochromatic
#501F52 #7B2F7E #A640AB #C063C5 #D290D5

Accessibility & contrast

On white

5.33
#A640AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#A640AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A640AB
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A640AB#FFFFFF#000000##FFFFFF
##A640AB1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F63AE
Deuteranopia (green-blind)
#5570A8
Tritanopia (blue-blind)
#AA4F70
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #a640ab;
/* rgb */ color: rgb(166, 64, 171);
/* oklch */ color: oklch(55.2% 0.186 325.8);
Tailwind
colors: {
  custom: {
    50: '#c37cc4',
    500: '#a640ab',
    950: '#000000',
  },
}
SCSS
$custom: #a640ab;
$custom-light: #c37cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#a640ab",
  "rgb": {
    "r": 166,
    "g": 64,
    "b": 171
  },
  "hsl": {
    "h": 297.196,
    "s": 45.532,
    "l": 46.078
  },
  "oklch": {
    "l": 0.55182,
    "c": 0.18589,
    "h": 325.8
  },
  "luminance": 0.14714
}

Semantic roles & 50–950 ramp

primary
#A640AB
secondary
#89C186
accent
#D55359
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #A640AB

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

Preview Lab → · Contrast checker → · Palette generator →

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