#A642D2#A642D2

#A642D2 is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 57.8% C 0.219 H 313.6°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#A642D2
RGBrgb(166, 66, 210)
HSLhsl(282, 62%, 54%)
HSVhsv(282, 69%, 82%)
CMYKcmyk(21%, 68.6%, 0%, 17.6%)
CIE-LABlab(47.83, 62.67, -56.29)
CIE-LCHlch(47.83, 84.24, 318.07°)
OKLaboklab(57.77% 0.1508 -0.1587)
OKLCHoklch(57.77% 0.219 313.6)
XYZxyz(29.3050, 16.6575, 62.6318)
Luminance0.1666 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A642D2 #6ED242
analogous
#5E42D2 #A642D2 #D242B6
triadic
#A642D2 #D2A642 #42D2A6
tetradic
#A642D2 #D25E42 #6ED242 #42B6D2
square
#A642D2 #D25E42 #6ED242 #42B6D2
split-complementary
#A642D2 #B6D242 #42D25E
monochromatic
#5F1E7C #8529AD #A642D2 #BD73DE #D5A5EA

Accessibility & contrast

On white

4.85
#A642D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#A642D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A642D2
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A642D2#FFFFFF#000000##FFFFFF
##A642D21.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD6
Deuteranopia (green-blind)
#3874CF
Tritanopia (blue-blind)
#A26085
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #a642d2;
/* rgb */ color: rgb(166, 66, 210);
/* oklch */ color: oklch(57.8% 0.219 313.6);
Tailwind
colors: {
  custom: {
    50: '#c47ee0',
    500: '#a642d2',
    950: '#000000',
  },
}
SCSS
$custom: #a642d2;
$custom-light: #c47ee0;
$custom-dark: #000000;
JSON
{
  "hex": "#a642d2",
  "rgb": {
    "r": 166,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 281.667,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.57774,
    "c": 0.21891,
    "h": 313.6
  },
  "luminance": 0.16657
}

Semantic roles & 50–950 ramp

primary
#A642D2
secondary
#ACD799
accent
#E54375
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A642D2

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

Preview Lab → · Contrast checker → · Palette generator →

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