#A640BA#A640BA

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

Color values

HEX#A640BA
RGBrgb(166, 64, 186)
HSLhsl(290, 49%, 49%)
HSVhsv(290, 66%, 73%)
CMYKcmyk(10.8%, 65.6%, 0%, 27.1%)
CIE-LABlab(46.07, 58.78, -45.21)
CIE-LCHlch(46.07, 74.15, 322.43°)
OKLaboklab(56.05% 0.1542 -0.1262)
OKLCHoklch(56.05% 0.199 320.7)
XYZxyz(26.4212, 15.3203, 48.0103)
Luminance0.1532 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A640BA #54BA40
analogous
#6940BA #A640BA #BA4091
triadic
#A640BA #BAA640 #40BAA6
tetradic
#A640BA #BA6940 #54BA40 #4091BA
square
#A640BA #BA6940 #54BA40 #4091BA
split-complementary
#A640BA #91BA40 #40BA69
monochromatic
#55215F #7D308C #A640BA #BC6BCC #D199DC

Accessibility & contrast

On white

5.17
#A640BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A640BA
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A640BA#FFFFFF#000000##FFFFFF
##A640BA1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C66BE
Deuteranopia (green-blind)
#4C71B7
Tritanopia (blue-blind)
#A75578
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a640ba;
/* rgb */ color: rgb(166, 64, 186);
/* oklch */ color: oklch(56.0% 0.199 320.7);
Tailwind
colors: {
  custom: {
    50: '#c47ccf',
    500: '#a640ba',
    950: '#000000',
  },
}
SCSS
$custom: #a640ba;
$custom-light: #c47ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#a640ba",
  "rgb": {
    "r": 166,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 290.164,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.56048,
    "c": 0.19925,
    "h": 320.7
  },
  "luminance": 0.15319
}

Semantic roles & 50–950 ramp

primary
#A640BA
secondary
#98C88E
accent
#D84F66
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A640BA

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

Preview Lab → · Contrast checker → · Palette generator →

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