#A640DD#A640DD

#A640DD is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 58.3% C 0.232 H 310.9°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#A640DD
RGBrgb(166, 64, 221)
HSLhsl(279, 70%, 56%)
HSVhsv(279, 71%, 87%)
CMYKcmyk(24.9%, 71%, 0%, 13.3%)
CIE-LABlab(48.25, 65.76, -61.88)
CIE-LCHlch(48.25, 90.30, 316.74°)
OKLaboklab(58.31% 0.1516 -0.1751)
OKLCHoklch(58.31% 0.232 310.9)
XYZxyz(30.6079, 16.9950, 70.0606)
Luminance0.1699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A640DD #77DD40
analogous
#5740DD #A640DD #DD40C5
triadic
#A640DD #DDA640 #40DDA6
tetradic
#A640DD #DD5740 #77DD40 #40C5DD
square
#A640DD #DD5740 #77DD40 #40C5DD
split-complementary
#A640DD #C5DD40 #40DD57
monochromatic
#62198A #8722BE #A640DD #BE74E6 #D6A8EF

Accessibility & contrast

On white

4.77
#A640DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#A640DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A640DD
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A640DD#FFFFFF#000000##FFFFFF
##A640DD1.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE1
Deuteranopia (green-blind)
#2674DA
Tritanopia (blue-blind)
#9F638B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #a640dd;
/* rgb */ color: rgb(166, 64, 221);
/* oklch */ color: oklch(58.3% 0.232 310.9);
Tailwind
colors: {
  custom: {
    50: '#c57ee8',
    500: '#a640dd',
    950: '#000000',
  },
}
SCSS
$custom: #a640dd;
$custom-light: #c57ee8;
$custom-dark: #000000;
JSON
{
  "hex": "#a640dd",
  "rgb": {
    "r": 166,
    "g": 64,
    "b": 221
  },
  "hsl": {
    "h": 278.981,
    "s": 69.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.58308,
    "c": 0.23161,
    "h": 310.9
  },
  "luminance": 0.16994
}

Semantic roles & 50–950 ramp

primary
#A640DD
secondary
#B3DD9C
accent
#ED3B79
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A640DD

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

Preview Lab → · Contrast checker → · Palette generator →

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