#A642D7#A642D7

#A642D7 is a mid, highly saturated purple. Relative luminance 0.169; OKLCH L 58.1% C 0.224 H 312.2°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#A642D7
RGBrgb(166, 66, 215)
HSLhsl(280, 65%, 55%)
HSVhsv(280, 69%, 84%)
CMYKcmyk(22.8%, 69.3%, 0%, 15.7%)
CIE-LABlab(48.15, 63.70, -58.63)
CIE-LCHlch(48.15, 86.58, 317.37°)
OKLaboklab(58.11% 0.1504 -0.1655)
OKLCHoklch(58.11% 0.224 312.2)
XYZxyz(29.9376, 16.9105, 65.9638)
Luminance0.1691 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A642D7 #73D742
analogous
#5B42D7 #A642D7 #D742BE
triadic
#A642D7 #D7A642 #42D7A6
tetradic
#A642D7 #D75B42 #73D742 #42BED7
square
#A642D7 #D75B42 #73D742 #42BED7
split-complementary
#A642D7 #BED742 #42D75B
monochromatic
#611C83 #8626B5 #A642D7 #BE75E2 #D6A7EC

Accessibility & contrast

On white

4.79
#A642D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#A642D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A642D7
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A642D7#FFFFFF#000000##FFFFFF
##A642D71.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDB
Deuteranopia (green-blind)
#3274D4
Tritanopia (blue-blind)
#A06288
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #a642d7;
/* rgb */ color: rgb(166, 66, 215);
/* oklch */ color: oklch(58.1% 0.224 312.2);
Tailwind
colors: {
  custom: {
    50: '#c57ee4',
    500: '#a642d7',
    950: '#000000',
  },
}
SCSS
$custom: #a642d7;
$custom-light: #c57ee4;
$custom-dark: #000000;
JSON
{
  "hex": "#a642d7",
  "rgb": {
    "r": 166,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 280.268,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.58107,
    "c": 0.22363,
    "h": 312.2
  },
  "luminance": 0.1691
}

Semantic roles & 50–950 ramp

primary
#A642D7
secondary
#B0DA9B
accent
#E84077
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #A642D7

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

Preview Lab → · Contrast checker → · Palette generator →

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