#A642AB#A642AB

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

Color values

HEX#A642AB
RGBrgb(166, 66, 171)
HSLhsl(297, 44%, 46%)
HSVhsv(297, 61%, 67%)
CMYKcmyk(2.9%, 61.4%, 0%, 32.9%)
CIE-LABlab(45.56, 55.12, -37.21)
CIE-LCHlch(45.56, 66.50, 325.98°)
OKLaboklab(55.41% 0.1514 -0.103)
OKLCHoklch(55.41% 0.183 325.8)
XYZxyz(25.0243, 14.9452, 40.0868)
Luminance0.1494 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A642AB #47AB42
analogous
#7242AB #A642AB #AB427C
triadic
#A642AB #ABA642 #42ABA6
tetradic
#A642AB #AB7242 #47AB42 #427CAB
square
#A642AB #AB7242 #47AB42 #427CAB
split-complementary
#A642AB #7CAB42 #42AB72
monochromatic
#502053 #7B317F #A642AB #C066C4 #D292D5

Accessibility & contrast

On white

5.26
#A642AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#A642AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A642AB
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A642AB#FFFFFF#000000##FFFFFF
##A642AB1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3264AE
Deuteranopia (green-blind)
#5670A8
Tritanopia (blue-blind)
#AA5070
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a642ab;
/* rgb */ color: rgb(166, 66, 171);
/* oklch */ color: oklch(55.4% 0.183 325.8);
Tailwind
colors: {
  custom: {
    50: '#c37dc4',
    500: '#a642ab',
    950: '#000000',
  },
}
SCSS
$custom: #a642ab;
$custom-light: #c37dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#a642ab",
  "rgb": {
    "r": 166,
    "g": 66,
    "b": 171
  },
  "hsl": {
    "h": 297.143,
    "s": 44.304,
    "l": 46.471
  },
  "oklch": {
    "l": 0.55412,
    "c": 0.18307,
    "h": 325.8
  },
  "luminance": 0.14944
}

Semantic roles & 50–950 ramp

primary
#A642AB
secondary
#8BC088
accent
#D4545A
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #A642AB

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

Preview Lab → · Contrast checker → · Palette generator →

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