#A640B3#A640B3

#A640B3 is a mid, vivid purple. Relative luminance 0.150; OKLCH L 55.6% C 0.193 H 323.0°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#A640B3
RGBrgb(166, 64, 179)
HSLhsl(293, 47%, 48%)
HSVhsv(293, 64%, 70%)
CMYKcmyk(7.3%, 64.2%, 0%, 29.8%)
CIE-LABlab(45.68, 57.46, -41.74)
CIE-LCHlch(45.68, 71.02, 324.01°)
OKLaboklab(55.64% 0.1541 -0.1161)
OKLCHoklch(55.64% 0.193 323)
XYZxyz(25.6952, 15.0299, 44.1867)
Luminance0.1503 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A640B3 #4DB340
analogous
#6C40B3 #A640B3 #B34087
triadic
#A640B3 #B3A640 #40B3A6
tetradic
#A640B3 #B36C40 #4DB340 #4087B3
square
#A640B3 #B36C40 #4DB340 #4087B3
split-complementary
#A640B3 #87B340 #40B36C
monochromatic
#522059 #7C3086 #A640B3 #BE67C9 #D194D9

Accessibility & contrast

On white

5.24
#A640B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#A640B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A640B3
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A640B3#FFFFFF#000000##FFFFFF
##A640B31.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2664B6
Deuteranopia (green-blind)
#5170B0
Tritanopia (blue-blind)
#A95274
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a640b3;
/* rgb */ color: rgb(166, 64, 179);
/* oklch */ color: oklch(55.6% 0.193 323.0);
Tailwind
colors: {
  custom: {
    50: '#c37cca',
    500: '#a640b3',
    950: '#000000',
  },
}
SCSS
$custom: #a640b3;
$custom-light: #c37cca;
$custom-dark: #000000;
JSON
{
  "hex": "#a640b3",
  "rgb": {
    "r": 166,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 293.217,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.55636,
    "c": 0.19296,
    "h": 323
  },
  "luminance": 0.15028
}

Semantic roles & 50–950 ramp

primary
#A640B3
secondary
#91C48A
accent
#D75160
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #A640B3

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

Preview Lab → · Contrast checker → · Palette generator →

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