#A642C2#A642C2

#A642C2 is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 56.8% C 0.204 H 318.1°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#A642C2
RGBrgb(166, 66, 194)
HSLhsl(287, 51%, 51%)
HSVhsv(287, 66%, 76%)
CMYKcmyk(14.4%, 66%, 0%, 23.9%)
CIE-LABlab(46.84, 59.47, -48.63)
CIE-LCHlch(46.84, 76.82, 320.72°)
OKLaboklab(56.76% 0.1518 -0.1362)
OKLCHoklch(56.76% 0.204 318.1)
XYZxyz(27.4104, 15.8996, 52.6536)
Luminance0.1590 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A642C2 #5EC242
analogous
#6642C2 #A642C2 #C2429E
triadic
#A642C2 #C2A642 #42C2A6
tetradic
#A642C2 #C26642 #5EC242 #429EC2
square
#A642C2 #C26642 #5EC242 #429EC2
split-complementary
#A642C2 #9EC242 #42C266
monochromatic
#592268 #803196 #A642C2 #BC70D1 #D29FE0

Accessibility & contrast

On white

5.02
#A642C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#A642C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A642C2
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A642C2#FFFFFF#000000##FFFFFF
##A642C21.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F69C6
Deuteranopia (green-blind)
#4872BF
Tritanopia (blue-blind)
#A5597D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a642c2;
/* rgb */ color: rgb(166, 66, 194);
/* oklch */ color: oklch(56.8% 0.204 318.1);
Tailwind
colors: {
  custom: {
    50: '#c47ed5',
    500: '#a642c2',
    950: '#000000',
  },
}
SCSS
$custom: #a642c2;
$custom-light: #c47ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#a642c2",
  "rgb": {
    "r": 166,
    "g": 66,
    "b": 194
  },
  "hsl": {
    "h": 286.875,
    "s": 51.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.56755,
    "c": 0.20395,
    "h": 318.1
  },
  "luminance": 0.15898
}

Semantic roles & 50–950 ramp

primary
#A642C2
secondary
#A0CC94
accent
#DB4D6C
background
#FCF8FD
surface
#F8EFFA
border
#D1CAD3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A642C2

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

Preview Lab → · Contrast checker → · Palette generator →

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