#A642A2#A642A2

#A642A2 is a mid, vivid purple. Relative luminance 0.146; OKLCH L 54.9% C 0.175 H 329.2°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#A642A2
RGBrgb(166, 66, 162)
HSLhsl(302, 43%, 45%)
HSVhsv(302, 60%, 65%)
CMYKcmyk(0%, 60.2%, 2.4%, 34.9%)
CIE-LABlab(45.10, 53.52, -32.59)
CIE-LCHlch(45.10, 62.66, 328.66°)
OKLaboklab(54.93% 0.1506 -0.0896)
OKLCHoklch(54.93% 0.175 329.2)
XYZxyz(24.1954, 14.6137, 35.7217)
Luminance0.1461 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A642A2 #42A646
analogous
#7842A6 #A642A2 #A64270
triadic
#A642A2 #A2A642 #42A2A6
tetradic
#A642A2 #A67842 #42A646 #4270A6
square
#A642A2 #A67842 #42A646 #4270A6
split-complementary
#A642A2 #70A642 #42A678
monochromatic
#4E1F4D #7A3177 #A642A2 #C164BE #D390D0

Accessibility & contrast

On white

5.35
#A642A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#A642A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A642A2
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A642A2#FFFFFF#000000##FFFFFF
##A642A21.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3962A5
Deuteranopia (green-blind)
#5B709F
Tritanopia (blue-blind)
#AC4D6C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #a642a2;
/* rgb */ color: rgb(166, 66, 162);
/* oklch */ color: oklch(54.9% 0.175 329.2);
Tailwind
colors: {
  custom: {
    50: '#c37dbe',
    500: '#a642a2',
    950: '#000000',
  },
}
SCSS
$custom: #a642a2;
$custom-light: #c37dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#a642a2",
  "rgb": {
    "r": 166,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 302.4,
    "s": 43.103,
    "l": 45.49
  },
  "oklch": {
    "l": 0.54929,
    "c": 0.17526,
    "h": 329.2
  },
  "luminance": 0.14612
}

Semantic roles & 50–950 ramp

primary
#A642A2
secondary
#86BE88
accent
#D35A55
background
#FCF7FB
surface
#F8EEF7
border
#D1C9D0
text
#130A12
muted
#827C81

Preview Lab

Preview with #A642A2

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

Preview Lab → · Contrast checker → · Palette generator →

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