#A42A8F#A42A8F

#A42A8F is a mid, vivid pink. Relative luminance 0.115; OKLCH L 51.2% C 0.190 H 336.0°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#A42A8F
RGBrgb(164, 42, 143)
HSLhsl(310, 59%, 40%)
HSVhsv(310, 74%, 64%)
CMYKcmyk(0%, 74.4%, 12.8%, 35.7%)
CIE-LABlab(40.46, 59.35, -28.45)
CIE-LCHlch(40.46, 65.81, 334.39°)
OKLaboklab(51.2% 0.174 -0.0776)
OKLCHoklch(51.2% 0.19 336)
XYZxyz(21.0961, 11.5335, 27.0964)
Luminance0.1153 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42A8F #2AA43F
analogous
#7C2AA4 #A42A8F #A42A52
triadic
#A42A8F #8FA42A #2A8FA4
tetradic
#A42A8F #A47C2A #2AA43F #2A52A4
square
#A42A8F #A47C2A #2AA43F #2A52A4
split-complementary
#A42A8F #52A42A #2AA47C
monochromatic
#43113A #731E65 #A42A8F #CD3EB5 #DA6EC7

Accessibility & contrast

On white

6.35
#A42A8F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#A42A8F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42A8F
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42A8F#FFFFFF#000000##FFFFFF
##A42A8F1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5492
Deuteranopia (green-blind)
#56668C
Tritanopia (blue-blind)
#AD335A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a42a8f;
/* rgb */ color: rgb(164, 42, 143);
/* oklch */ color: oklch(51.2% 0.190 336.0);
Tailwind
colors: {
  custom: {
    50: '#c370b0',
    500: '#a42a8f',
    950: '#000000',
  },
}
SCSS
$custom: #a42a8f;
$custom-light: #c370b0;
$custom-dark: #000000;
JSON
{
  "hex": "#a42a8f",
  "rgb": {
    "r": 164,
    "g": 42,
    "b": 143
  },
  "hsl": {
    "h": 310.328,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.51198,
    "c": 0.19048,
    "h": 336
  },
  "luminance": 0.11532
}

Semantic roles & 50–950 ramp

primary
#A42A8F
secondary
#69C178
accent
#E26045
background
#FCF7FA
surface
#F8EDF5
border
#D1C8CF
text
#130810
muted
#827B7F

Preview Lab

Preview with #A42A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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