#A42A9B#A42A9B

#A42A9B is a mid, vivid purple. Relative luminance 0.119; OKLCH L 51.8% C 0.199 H 331.3°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#A42A9B
RGBrgb(164, 42, 155)
HSLhsl(304, 59%, 40%)
HSVhsv(304, 74%, 64%)
CMYKcmyk(0%, 74.4%, 5.5%, 35.7%)
CIE-LABlab(41.08, 61.20, -34.75)
CIE-LCHlch(41.08, 70.37, 330.41°)
OKLaboklab(51.84% 0.1747 -0.0957)
OKLCHoklch(51.84% 0.199 331.3)
XYZxyz(22.0542, 11.9168, 32.1426)
Luminance0.1192 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42A9B #2AA433
analogous
#702AA4 #A42A9B #A42A5E
triadic
#A42A9B #9BA42A #2A9BA4
tetradic
#A42A9B #A4702A #2AA433 #2A5EA4
square
#A42A9B #A4702A #2AA433 #2A5EA4
split-complementary
#A42A9B #5EA42A #2AA470
monochromatic
#43113F #731E6D #A42A9B #CD3EC3 #DA6ED2

Accessibility & contrast

On white

6.21
#A42A9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#A42A9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42A9B
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42A9B#FFFFFF#000000##FFFFFF
##A42A9B1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F569E
Deuteranopia (green-blind)
#516798
Tritanopia (blue-blind)
#AB3960
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a42a9b;
/* rgb */ color: rgb(164, 42, 155);
/* oklch */ color: oklch(51.8% 0.199 331.3);
Tailwind
colors: {
  custom: {
    50: '#c371b9',
    500: '#a42a9b',
    950: '#000000',
  },
}
SCSS
$custom: #a42a9b;
$custom-light: #c371b9;
$custom-dark: #000000;
JSON
{
  "hex": "#a42a9b",
  "rgb": {
    "r": 164,
    "g": 42,
    "b": 155
  },
  "hsl": {
    "h": 304.426,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.51843,
    "c": 0.19924,
    "h": 331.3
  },
  "luminance": 0.11915
}

Semantic roles & 50–950 ramp

primary
#A42A9B
secondary
#69C16F
accent
#E25145
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #A42A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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