#A642AA#A642AA

#A642AA is a mid, vivid purple. Relative luminance 0.149; OKLCH L 55.4% C 0.182 H 326.1°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#A642AA
RGBrgb(166, 66, 170)
HSLhsl(298, 44%, 46%)
HSVhsv(298, 61%, 67%)
CMYKcmyk(2.4%, 61.2%, 0%, 33.3%)
CIE-LABlab(45.51, 54.94, -36.70)
CIE-LCHlch(45.51, 66.07, 326.26°)
OKLaboklab(55.36% 0.1513 -0.1015)
OKLCHoklch(55.36% 0.182 326.1)
XYZxyz(24.9293, 14.9072, 39.5867)
Luminance0.1491 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A642AA #46AA42
analogous
#7242AA #A642AA #AA427A
triadic
#A642AA #AAA642 #42AAA6
tetradic
#A642AA #AA7242 #46AA42 #427AAA
square
#A642AA #AA7242 #46AA42 #427AAA
split-complementary
#A642AA #7AAA42 #42AA72
monochromatic
#502052 #7B317E #A642AA #C066C3 #D292D5

Accessibility & contrast

On white

5.27
#A642AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#A642AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A642AA
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A642AA#FFFFFF#000000##FFFFFF
##A642AA1.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3364AD
Deuteranopia (green-blind)
#5770A7
Tritanopia (blue-blind)
#AA5070
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a642aa;
/* rgb */ color: rgb(166, 66, 170);
/* oklch */ color: oklch(55.4% 0.182 326.1);
Tailwind
colors: {
  custom: {
    50: '#c37dc4',
    500: '#a642aa',
    950: '#000000',
  },
}
SCSS
$custom: #a642aa;
$custom-light: #c37dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#a642aa",
  "rgb": {
    "r": 166,
    "g": 66,
    "b": 170
  },
  "hsl": {
    "h": 297.692,
    "s": 44.068,
    "l": 46.275
  },
  "oklch": {
    "l": 0.55357,
    "c": 0.18219,
    "h": 326.1
  },
  "luminance": 0.14906
}

Semantic roles & 50–950 ramp

primary
#A642AA
secondary
#8AC088
accent
#D45459
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A12
muted
#827C81

Preview Lab

Preview with #A642AA

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

Preview Lab → · Contrast checker → · Palette generator →

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