#A42A9E#A42A9E

#A42A9E is a mid, highly saturated purple. Relative luminance 0.120; OKLCH L 52.0% C 0.201 H 330.2°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#A42A9E
RGBrgb(164, 42, 158)
HSLhsl(303, 59%, 40%)
HSVhsv(303, 74%, 64%)
CMYKcmyk(0%, 74.4%, 3.7%, 35.7%)
CIE-LABlab(41.25, 61.68, -36.30)
CIE-LCHlch(41.25, 71.57, 329.52°)
OKLaboklab(52.01% 0.1748 -0.1002)
OKLCHoklch(52.01% 0.201 330.2)
XYZxyz(22.3093, 12.0188, 33.4860)
Luminance0.1202 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42A9E #2AA430
analogous
#6D2AA4 #A42A9E #A42A61
triadic
#A42A9E #9EA42A #2A9EA4
tetradic
#A42A9E #A46D2A #2AA430 #2A61A4
square
#A42A9E #A46D2A #2AA430 #2A61A4
split-complementary
#A42A9E #61A42A #2AA46D
monochromatic
#431140 #731E6F #A42A9E #CD3EC6 #DA6ED5

Accessibility & contrast

On white

6.17
#A42A9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#A42A9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42A9E
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42A9E#FFFFFF#000000##FFFFFF
##A42A9E1.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B57A1
Deuteranopia (green-blind)
#4F679B
Tritanopia (blue-blind)
#AA3A62
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a42a9e;
/* rgb */ color: rgb(164, 42, 158);
/* oklch */ color: oklch(52.0% 0.201 330.2);
Tailwind
colors: {
  custom: {
    50: '#c371bb',
    500: '#a42a9e',
    950: '#000000',
  },
}
SCSS
$custom: #a42a9e;
$custom-light: #c371bb;
$custom-dark: #000000;
JSON
{
  "hex": "#a42a9e",
  "rgb": {
    "r": 164,
    "g": 42,
    "b": 158
  },
  "hsl": {
    "h": 302.951,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.52012,
    "c": 0.20149,
    "h": 330.2
  },
  "luminance": 0.12017
}

Semantic roles & 50–950 ramp

primary
#A42A9E
secondary
#69C16D
accent
#E24D45
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A42A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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