#A640E1#A640E1

#A640E1 is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 58.6% C 0.235 H 309.9°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#A640E1
RGBrgb(166, 64, 225)
HSLhsl(278, 73%, 57%)
HSVhsv(278, 72%, 88%)
CMYKcmyk(26.2%, 71.6%, 0%, 11.8%)
CIE-LABlab(48.52, 66.60, -63.72)
CIE-LCHlch(48.52, 92.17, 316.27°)
OKLaboklab(58.59% 0.1511 -0.1805)
OKLCHoklch(58.59% 0.235 309.9)
XYZxyz(31.1472, 17.2107, 72.9008)
Luminance0.1721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A640E1 #7BE140
analogous
#5540E1 #A640E1 #E140CC
triadic
#A640E1 #E1A640 #40E1A6
tetradic
#A640E1 #E15540 #7BE140 #40CCE1
square
#A640E1 #E15540 #7BE140 #40CCE1
split-complementary
#A640E1 #CCE140 #40E155
monochromatic
#641790 #881FC5 #A640E1 #BF75E9 #D7AAF2

Accessibility & contrast

On white

4.73
#A640E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#A640E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A640E1
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A640E1#FFFFFF#000000##FFFFFF
##A640E11.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE6
Deuteranopia (green-blind)
#1D75DE
Tritanopia (blue-blind)
#9E658D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #a640e1;
/* rgb */ color: rgb(166, 64, 225);
/* oklch */ color: oklch(58.6% 0.235 309.9);
Tailwind
colors: {
  custom: {
    50: '#c57eeb',
    500: '#a640e1',
    950: '#000000',
  },
}
SCSS
$custom: #a640e1;
$custom-light: #c57eeb;
$custom-dark: #000000;
JSON
{
  "hex": "#a640e1",
  "rgb": {
    "r": 166,
    "g": 64,
    "b": 225
  },
  "hsl": {
    "h": 278.012,
    "s": 72.851,
    "l": 56.667
  },
  "oklch": {
    "l": 0.58586,
    "c": 0.23535,
    "h": 309.9
  },
  "luminance": 0.1721
}

Semantic roles & 50–950 ramp

primary
#A640E1
secondary
#B6DF9D
accent
#F0387B
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A640E1

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

Preview Lab → · Contrast checker → · Palette generator →

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