#A640DF#A640DF

#A640DF is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 58.4% C 0.233 H 310.4°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#A640DF
RGBrgb(166, 64, 223)
HSLhsl(278, 71%, 56%)
HSVhsv(278, 71%, 87%)
CMYKcmyk(25.6%, 71.3%, 0%, 12.5%)
CIE-LABlab(48.39, 66.18, -62.80)
CIE-LCHlch(48.39, 91.23, 316.50°)
OKLaboklab(58.45% 0.1514 -0.1778)
OKLCHoklch(58.45% 0.233 310.4)
XYZxyz(30.8760, 17.1022, 71.4723)
Luminance0.1710 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A640DF #79DF40
analogous
#5740DF #A640DF #DF40C8
triadic
#A640DF #DFA640 #40DFA6
tetradic
#A640DF #DF5740 #79DF40 #40C8DF
square
#A640DF #DF5740 #79DF40 #40C8DF
split-complementary
#A640DF #C8DF40 #40DF57
monochromatic
#63188D #8820C1 #A640DF #BE74E8 #D7A9F1

Accessibility & contrast

On white

4.75
#A640DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#A640DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A640DF
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A640DF#FFFFFF#000000##FFFFFF
##A640DF1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE4
Deuteranopia (green-blind)
#2275DC
Tritanopia (blue-blind)
#9E648C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #a640df;
/* rgb */ color: rgb(166, 64, 223);
/* oklch */ color: oklch(58.4% 0.233 310.4);
Tailwind
colors: {
  custom: {
    50: '#c57eea',
    500: '#a640df',
    950: '#000000',
  },
}
SCSS
$custom: #a640df;
$custom-light: #c57eea;
$custom-dark: #000000;
JSON
{
  "hex": "#a640df",
  "rgb": {
    "r": 166,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 278.491,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.58447,
    "c": 0.23348,
    "h": 310.4
  },
  "luminance": 0.17101
}

Semantic roles & 50–950 ramp

primary
#A640DF
secondary
#B4DE9D
accent
#EE3A7A
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A640DF

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

Preview Lab → · Contrast checker → · Palette generator →

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