#A642DC#A642DC

#A642DC is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 58.4% C 0.228 H 311.0°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#A642DC
RGBrgb(166, 66, 220)
HSLhsl(279, 69%, 56%)
HSVhsv(279, 70%, 86%)
CMYKcmyk(24.5%, 70%, 0%, 13.7%)
CIE-LABlab(48.48, 64.74, -60.95)
CIE-LCHlch(48.48, 88.92, 316.72°)
OKLaboklab(58.45% 0.1498 -0.1724)
OKLCHoklch(58.45% 0.228 311)
XYZxyz(30.5899, 17.1715, 69.3993)
Luminance0.1717 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A642DC #78DC42
analogous
#5942DC #A642DC #DC42C5
triadic
#A642DC #DCA642 #42DCA6
tetradic
#A642DC #DC5942 #78DC42 #42C5DC
square
#A642DC #DC5942 #78DC42 #42C5DC
split-complementary
#A642DC #C5DC42 #42DC59
monochromatic
#631A8A #8723BE #A642DC #BE76E6 #D7A9EF

Accessibility & contrast

On white

4.74
#A642DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#A642DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A642DC
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A642DC#FFFFFF#000000##FFFFFF
##A642DC1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE0
Deuteranopia (green-blind)
#2B75D9
Tritanopia (blue-blind)
#9F648B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #a642dc;
/* rgb */ color: rgb(166, 66, 220);
/* oklch */ color: oklch(58.4% 0.228 311.0);
Tailwind
colors: {
  custom: {
    50: '#c57ee8',
    500: '#a642dc',
    950: '#000000',
  },
}
SCSS
$custom: #a642dc;
$custom-light: #c57ee8;
$custom-dark: #000000;
JSON
{
  "hex": "#a642dc",
  "rgb": {
    "r": 166,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 278.961,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.58445,
    "c": 0.22835,
    "h": 311
  },
  "luminance": 0.17171
}

Semantic roles & 50–950 ramp

primary
#A642DC
secondary
#B3DD9D
accent
#EC3C7A
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #A642DC

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

Preview Lab → · Contrast checker → · Palette generator →

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