#A42DC4#A42DC4

#A42DC4 is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.6% C 0.229 H 317.9°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#A42DC4
RGBrgb(164, 45, 196)
HSLhsl(287, 63%, 47%)
HSVhsv(287, 77%, 77%)
CMYKcmyk(16.3%, 77%, 0%, 23.1%)
CIE-LABlab(43.88, 67.34, -54.57)
CIE-LCHlch(43.88, 86.67, 320.98°)
OKLaboklab(54.62% 0.1698 -0.1535)
OKLCHoklch(54.62% 0.229 317.9)
XYZxyz(26.2106, 13.7560, 53.4884)
Luminance0.1376 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42DC4 #4DC42D
analogous
#592DC4 #A42DC4 #C42D98
triadic
#A42DC4 #C4A42D #2DC4A4
tetradic
#A42DC4 #C4592D #4DC42D #2D98C4
square
#A42DC4 #C4592D #4DC42D #2D98C4
split-complementary
#A42DC4 #98C42D #2DC459
monochromatic
#511660 #7A2292 #A42DC4 #BD56D8 #D088E4

Accessibility & contrast

On white

5.60
#A42DC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#A42DC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42DC4
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42DC4#FFFFFF#000000##FFFFFF
##A42DC41.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C8
Deuteranopia (green-blind)
#336BC1
Tritanopia (blue-blind)
#A34E78
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #a42dc4;
/* rgb */ color: rgb(164, 45, 196);
/* oklch */ color: oklch(54.6% 0.229 317.9);
Tailwind
colors: {
  custom: {
    50: '#c374d7',
    500: '#a42dc4',
    950: '#000000',
  },
}
SCSS
$custom: #a42dc4;
$custom-light: #c374d7;
$custom-dark: #000000;
JSON
{
  "hex": "#a42dc4",
  "rgb": {
    "r": 164,
    "g": 45,
    "b": 196
  },
  "hsl": {
    "h": 287.285,
    "s": 62.656,
    "l": 47.255
  },
  "oklch": {
    "l": 0.54623,
    "c": 0.22891,
    "h": 317.9
  },
  "luminance": 0.13755
}

Semantic roles & 50–950 ramp

primary
#A42DC4
secondary
#90CD80
accent
#E64265
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#130914
muted
#827B83

Preview Lab

Preview with #A42DC4

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

Preview Lab → · Contrast checker → · Palette generator →

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