#A640B2#A640B2

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

Color values

HEX#A640B2
RGBrgb(166, 64, 178)
HSLhsl(294, 47%, 47%)
HSVhsv(294, 64%, 70%)
CMYKcmyk(6.7%, 64%, 0%, 30.2%)
CIE-LABlab(45.62, 57.28, -41.24)
CIE-LCHlch(45.62, 70.58, 324.25°)
OKLaboklab(55.58% 0.1541 -0.1146)
OKLCHoklch(55.58% 0.192 323.4)
XYZxyz(25.5944, 14.9896, 43.6560)
Luminance0.1499 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A640B2 #4CB240
analogous
#6D40B2 #A640B2 #B24085
triadic
#A640B2 #B2A640 #40B2A6
tetradic
#A640B2 #B26D40 #4CB240 #4085B2
square
#A640B2 #B26D40 #4CB240 #4085B2
split-complementary
#A640B2 #85B240 #40B26D
monochromatic
#522058 #7C3085 #A640B2 #BE67C8 #D194D8

Accessibility & contrast

On white

5.25
#A640B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#A640B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A640B2
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A640B2#FFFFFF#000000##FFFFFF
##A640B21.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2864B5
Deuteranopia (green-blind)
#5170AF
Tritanopia (blue-blind)
#A95273
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a640b2;
/* rgb */ color: rgb(166, 64, 178);
/* oklch */ color: oklch(55.6% 0.192 323.4);
Tailwind
colors: {
  custom: {
    50: '#c37cc9',
    500: '#a640b2',
    950: '#000000',
  },
}
SCSS
$custom: #a640b2;
$custom-light: #c37cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#a640b2",
  "rgb": {
    "r": 166,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 293.684,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.55578,
    "c": 0.19207,
    "h": 323.4
  },
  "luminance": 0.14988
}

Semantic roles & 50–950 ramp

primary
#A640B2
secondary
#90C48A
accent
#D7515F
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #A640B2

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

Preview Lab → · Contrast checker → · Palette generator →

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