#A642DD#A642DD

#A642DD is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 58.5% C 0.229 H 310.7°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#A642DD
RGBrgb(166, 66, 221)
HSLhsl(279, 70%, 56%)
HSVhsv(279, 70%, 87%)
CMYKcmyk(24.9%, 70.1%, 0%, 13.3%)
CIE-LABlab(48.54, 64.95, -61.42)
CIE-LCHlch(48.54, 89.39, 316.60°)
OKLaboklab(58.51% 0.1497 -0.1737)
OKLCHoklch(58.51% 0.229 310.7)
XYZxyz(30.7227, 17.2246, 70.0988)
Luminance0.1722 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A642DD #79DD42
analogous
#5942DD #A642DD #DD42C7
triadic
#A642DD #DDA642 #42DDA6
tetradic
#A642DD #DD5942 #79DD42 #42C7DD
square
#A642DD #DD5942 #79DD42 #42C7DD
split-complementary
#A642DD #C7DD42 #42DD59
monochromatic
#63198C #8822BF #A642DD #BE76E6 #D7AAF0

Accessibility & contrast

On white

4.72
#A642DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A642DD
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A642DD#FFFFFF#000000##FFFFFF
##A642DD1.004.724.444.72
#FFFFFF4.721.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE1
Deuteranopia (green-blind)
#2975DA
Tritanopia (blue-blind)
#9F648B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #a642dd;
/* rgb */ color: rgb(166, 66, 221);
/* oklch */ color: oklch(58.5% 0.229 310.7);
Tailwind
colors: {
  custom: {
    50: '#c57fe8',
    500: '#a642dd',
    950: '#000000',
  },
}
SCSS
$custom: #a642dd;
$custom-light: #c57fe8;
$custom-dark: #000000;
JSON
{
  "hex": "#a642dd",
  "rgb": {
    "r": 166,
    "g": 66,
    "b": 221
  },
  "hsl": {
    "h": 278.71,
    "s": 69.507,
    "l": 56.275
  },
  "oklch": {
    "l": 0.58513,
    "c": 0.2293,
    "h": 310.7
  },
  "luminance": 0.17224
}

Semantic roles & 50–950 ramp

primary
#A642DD
secondary
#B4DD9D
accent
#EC3B7A
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #A642DD

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

Preview Lab → · Contrast checker → · Palette generator →

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