#A640B5#A640B5

#A640B5 is a mid, vivid purple. Relative luminance 0.151; OKLCH L 55.8% C 0.195 H 322.3°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#A640B5
RGBrgb(166, 64, 181)
HSLhsl(292, 48%, 48%)
HSVhsv(292, 65%, 71%)
CMYKcmyk(8.3%, 64.6%, 0%, 29%)
CIE-LABlab(45.79, 57.83, -42.73)
CIE-LCHlch(45.79, 71.91, 323.54°)
OKLaboklab(55.75% 0.1542 -0.119)
OKLCHoklch(55.75% 0.195 322.3)
XYZxyz(25.8989, 15.1114, 45.2597)
Luminance0.1511 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A640B5 #4FB540
analogous
#6C40B5 #A640B5 #B54089
triadic
#A640B5 #B5A640 #40B5A6
tetradic
#A640B5 #B56C40 #4FB540 #4089B5
square
#A640B5 #B56C40 #4FB540 #4089B5
split-complementary
#A640B5 #89B540 #40B56C
monochromatic
#53205B #7D3088 #A640B5 #BD68CA #D196DA

Accessibility & contrast

On white

5.22
#A640B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#A640B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A640B5
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A640B5#FFFFFF#000000##FFFFFF
##A640B51.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2465B8
Deuteranopia (green-blind)
#4F70B2
Tritanopia (blue-blind)
#A85375
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a640b5;
/* rgb */ color: rgb(166, 64, 181);
/* oklch */ color: oklch(55.8% 0.195 322.3);
Tailwind
colors: {
  custom: {
    50: '#c47ccc',
    500: '#a640b5',
    950: '#000000',
  },
}
SCSS
$custom: #a640b5;
$custom-light: #c47ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#a640b5",
  "rgb": {
    "r": 166,
    "g": 64,
    "b": 181
  },
  "hsl": {
    "h": 292.308,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.55752,
    "c": 0.19475,
    "h": 322.3
  },
  "luminance": 0.1511
}

Semantic roles & 50–950 ramp

primary
#A640B5
secondary
#93C58B
accent
#D75062
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A13
muted
#827C82

Preview Lab

Preview with #A640B5

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

Preview Lab → · Contrast checker → · Palette generator →

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