#A640DB#A640DB

#A640DB is a mid, highly saturated violet. Relative luminance 0.169; OKLCH L 58.2% C 0.230 H 311.4°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#A640DB
RGBrgb(166, 64, 219)
HSLhsl(279, 68%, 55%)
HSVhsv(279, 71%, 86%)
CMYKcmyk(24.2%, 70.8%, 0%, 14.1%)
CIE-LABlab(48.12, 65.35, -60.96)
CIE-LCHlch(48.12, 89.37, 316.99°)
OKLaboklab(58.17% 0.1519 -0.1724)
OKLCHoklch(58.17% 0.23 311.4)
XYZxyz(30.3431, 16.8890, 68.6656)
Luminance0.1689 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A640DB #75DB40
analogous
#5840DB #A640DB #DB40C2
triadic
#A640DB #DBA640 #40DBA6
tetradic
#A640DB #DB5840 #75DB40 #40C2DB
square
#A640DB #DB5840 #75DB40 #40C2DB
split-complementary
#A640DB #C2DB40 #40DB58
monochromatic
#621987 #8723BB #A640DB #BE73E5 #D6A7EE

Accessibility & contrast

On white

4.80
#A640DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#A640DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A640DB
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A640DB#FFFFFF#000000##FFFFFF
##A640DB1.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDF
Deuteranopia (green-blind)
#2A74D8
Tritanopia (blue-blind)
#9F628A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #a640db;
/* rgb */ color: rgb(166, 64, 219);
/* oklch */ color: oklch(58.2% 0.230 311.4);
Tailwind
colors: {
  custom: {
    50: '#c57de7',
    500: '#a640db',
    950: '#000000',
  },
}
SCSS
$custom: #a640db;
$custom-light: #c57de7;
$custom-dark: #000000;
JSON
{
  "hex": "#a640db",
  "rgb": {
    "r": 166,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 279.484,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.58171,
    "c": 0.22974,
    "h": 311.4
  },
  "luminance": 0.16888
}

Semantic roles & 50–950 ramp

primary
#A640DB
secondary
#B1DC9B
accent
#EB3D78
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A640DB

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

Preview Lab → · Contrast checker → · Palette generator →

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