#A640B1#A640B1

#A640B1 is a mid, vivid purple. Relative luminance 0.149; OKLCH L 55.5% C 0.191 H 323.7°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#A640B1
RGBrgb(166, 64, 177)
HSLhsl(294, 47%, 47%)
HSVhsv(294, 64%, 69%)
CMYKcmyk(6.2%, 63.8%, 0%, 30.6%)
CIE-LABlab(45.56, 57.09, -40.73)
CIE-LCHlch(45.56, 70.13, 324.49°)
OKLaboklab(55.52% 0.1541 -0.1132)
OKLCHoklch(55.52% 0.191 323.7)
XYZxyz(25.4944, 14.9495, 43.1291)
Luminance0.1495 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A640B1 #4BB140
analogous
#6D40B1 #A640B1 #B14084
triadic
#A640B1 #B1A640 #40B1A6
tetradic
#A640B1 #B16D40 #4BB140 #4084B1
square
#A640B1 #B16D40 #4BB140 #4084B1
split-complementary
#A640B1 #84B140 #40B16D
monochromatic
#521F57 #7C3084 #A640B1 #BE66C8 #D193D8

Accessibility & contrast

On white

5.26
#A640B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#A640B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A640B1
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A640B1#FFFFFF#000000##FFFFFF
##A640B11.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2964B4
Deuteranopia (green-blind)
#5270AE
Tritanopia (blue-blind)
#A95173
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a640b1;
/* rgb */ color: rgb(166, 64, 177);
/* oklch */ color: oklch(55.5% 0.191 323.7);
Tailwind
colors: {
  custom: {
    50: '#c37cc9',
    500: '#a640b1',
    950: '#000000',
  },
}
SCSS
$custom: #a640b1;
$custom-light: #c37cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#a640b1",
  "rgb": {
    "r": 166,
    "g": 64,
    "b": 177
  },
  "hsl": {
    "h": 294.159,
    "s": 46.888,
    "l": 47.255
  },
  "oklch": {
    "l": 0.5552,
    "c": 0.19118,
    "h": 323.7
  },
  "luminance": 0.14948
}

Semantic roles & 50–950 ramp

primary
#A640B1
secondary
#8FC389
accent
#D7515E
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #A640B1

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

Preview Lab → · Contrast checker → · Palette generator →

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