#A42AC7#A42AC7

#A42AC7 is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.6% C 0.234 H 317.2°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#A42AC7
RGBrgb(164, 42, 199)
HSLhsl(287, 65%, 47%)
HSVhsv(287, 79%, 78%)
CMYKcmyk(17.6%, 78.9%, 0%, 22%)
CIE-LABlab(43.76, 68.83, -56.50)
CIE-LCHlch(43.76, 89.05, 320.62°)
OKLaboklab(54.6% 0.1717 -0.1592)
OKLCHoklch(54.6% 0.234 317.2)
XYZxyz(26.4451, 13.6731, 55.2679)
Luminance0.1367 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42AC7 #4DC72A
analogous
#552AC7 #A42AC7 #C72A9C
triadic
#A42AC7 #C7A42A #2AC7A4
tetradic
#A42AC7 #C7552A #4DC72A #2A9CC7
square
#A42AC7 #C7552A #4DC72A #2A9CC7
split-complementary
#A42AC7 #9CC72A #2AC755
monochromatic
#511562 #7A1F94 #A42AC7 #BD53DB #D086E5

Accessibility & contrast

On white

5.62
#A42AC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#A42AC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42AC7
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42AC7#FFFFFF#000000##FFFFFF
##A42AC71.005.623.735.62
#FFFFFF5.621.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CB
Deuteranopia (green-blind)
#2D6BC4
Tritanopia (blue-blind)
#A24E79
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #a42ac7;
/* rgb */ color: rgb(164, 42, 199);
/* oklch */ color: oklch(54.6% 0.234 317.2);
Tailwind
colors: {
  custom: {
    50: '#c473d9',
    500: '#a42ac7',
    950: '#000000',
  },
}
SCSS
$custom: #a42ac7;
$custom-light: #c473d9;
$custom-dark: #000000;
JSON
{
  "hex": "#a42ac7",
  "rgb": {
    "r": 164,
    "g": 42,
    "b": 199
  },
  "hsl": {
    "h": 286.624,
    "s": 65.145,
    "l": 47.255
  },
  "oklch": {
    "l": 0.54601,
    "c": 0.23418,
    "h": 317.2
  },
  "luminance": 0.13672
}

Semantic roles & 50–950 ramp

primary
#A42AC7
secondary
#90CF7E
accent
#E84065
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83

Preview Lab

Preview with #A42AC7

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

Preview Lab → · Contrast checker → · Palette generator →

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