#A642D4#A642D4

#A642D4 is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 57.9% C 0.221 H 313.0°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#A642D4
RGBrgb(166, 66, 212)
HSLhsl(281, 63%, 55%)
HSVhsv(281, 69%, 83%)
CMYKcmyk(21.7%, 68.9%, 0%, 16.9%)
CIE-LABlab(47.95, 63.08, -57.23)
CIE-LCHlch(47.95, 85.17, 317.79°)
OKLaboklab(57.91% 0.1507 -0.1614)
OKLCHoklch(57.91% 0.221 313)
XYZxyz(29.5557, 16.7578, 63.9522)
Luminance0.1676 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A642D4 #70D442
analogous
#5D42D4 #A642D4 #D442B9
triadic
#A642D4 #D4A642 #42D4A6
tetradic
#A642D4 #D45D42 #70D442 #42B9D4
square
#A642D4 #D45D42 #70D442 #42B9D4
split-complementary
#A642D4 #B9D442 #42D45D
monochromatic
#601D7F #8628B1 #A642D4 #BD74DF #D5A6EB

Accessibility & contrast

On white

4.83
#A642D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#A642D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A642D4
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A642D4#FFFFFF#000000##FFFFFF
##A642D41.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD8
Deuteranopia (green-blind)
#3674D1
Tritanopia (blue-blind)
#A16086
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #a642d4;
/* rgb */ color: rgb(166, 66, 212);
/* oklch */ color: oklch(57.9% 0.221 313.0);
Tailwind
colors: {
  custom: {
    50: '#c57ee2',
    500: '#a642d4',
    950: '#000000',
  },
}
SCSS
$custom: #a642d4;
$custom-light: #c57ee2;
$custom-dark: #000000;
JSON
{
  "hex": "#a642d4",
  "rgb": {
    "r": 166,
    "g": 66,
    "b": 212
  },
  "hsl": {
    "h": 281.096,
    "s": 62.931,
    "l": 54.51
  },
  "oklch": {
    "l": 0.57907,
    "c": 0.2208,
    "h": 313
  },
  "luminance": 0.16757
}

Semantic roles & 50–950 ramp

primary
#A642D4
secondary
#ADD89A
accent
#E64276
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A642D4

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

Preview Lab → · Contrast checker → · Palette generator →

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