#A642D8#A642D8

#A642D8 is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.2% C 0.225 H 312.0°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#A642D8
RGBrgb(166, 66, 216)
HSLhsl(280, 66%, 55%)
HSVhsv(280, 69%, 85%)
CMYKcmyk(23.1%, 69.4%, 0%, 15.3%)
CIE-LABlab(48.21, 63.91, -59.10)
CIE-LCHlch(48.21, 87.04, 317.24°)
OKLaboklab(58.17% 0.1502 -0.1669)
OKLCHoklch(58.17% 0.225 312)
XYZxyz(30.0665, 16.9621, 66.6426)
Luminance0.1696 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A642D8 #74D842
analogous
#5B42D8 #A642D8 #D842BF
triadic
#A642D8 #D8A642 #42D8A6
tetradic
#A642D8 #D85B42 #74D842 #42BFD8
square
#A642D8 #D85B42 #74D842 #42BFD8
split-complementary
#A642D8 #BFD842 #42D85B
monochromatic
#611B84 #8726B7 #A642D8 #BE75E2 #D6A7ED

Accessibility & contrast

On white

4.78
#A642D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#A642D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A642D8
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A642D8#FFFFFF#000000##FFFFFF
##A642D81.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDC
Deuteranopia (green-blind)
#3174D5
Tritanopia (blue-blind)
#A06288
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #a642d8;
/* rgb */ color: rgb(166, 66, 216);
/* oklch */ color: oklch(58.2% 0.225 312.0);
Tailwind
colors: {
  custom: {
    50: '#c57ee5',
    500: '#a642d8',
    950: '#000000',
  },
}
SCSS
$custom: #a642d8;
$custom-light: #c57ee5;
$custom-dark: #000000;
JSON
{
  "hex": "#a642d8",
  "rgb": {
    "r": 166,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 280,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.58174,
    "c": 0.22457,
    "h": 312
  },
  "luminance": 0.16961
}

Semantic roles & 50–950 ramp

primary
#A642D8
secondary
#B0DA9C
accent
#E93F78
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #A642D8

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

Preview Lab → · Contrast checker → · Palette generator →

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