#A42F8F#A42F8F

#A42F8F is a mid, vivid pink. Relative luminance 0.119; OKLCH L 51.6% C 0.185 H 336.1°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#A42F8F
RGBrgb(164, 47, 143)
HSLhsl(311, 55%, 41%)
HSVhsv(311, 71%, 64%)
CMYKcmyk(0%, 71.3%, 12.8%, 35.7%)
CIE-LABlab(41.07, 57.62, -27.49)
CIE-LCHlch(41.07, 63.85, 334.49°)
OKLaboklab(51.64% 0.1688 -0.0749)
OKLCHoklch(51.64% 0.185 336.1)
XYZxyz(21.2846, 11.9106, 27.1593)
Luminance0.1191 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42F8F #2FA444
analogous
#7F2FA4 #A42F8F #A42F55
triadic
#A42F8F #8FA42F #2F8FA4
tetradic
#A42F8F #A47F2F #2FA444 #2F55A4
square
#A42F8F #A47F2F #2FA444 #2F55A4
split-complementary
#A42F8F #55A42F #2FA47F
monochromatic
#45143C #742166 #A42F8F #CA46B2 #D876C6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A42F8F#FFFFFF#000000##FFFFFF
##A42F8F1.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)
#315692
Deuteranopia (green-blind)
#58678C
Tritanopia (blue-blind)
#AC375B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a42f8f;
/* rgb */ color: rgb(164, 47, 143);
/* oklch */ color: oklch(51.6% 0.185 336.1);
Tailwind
colors: {
  custom: {
    50: '#c272b0',
    500: '#a42f8f',
    950: '#000000',
  },
}
SCSS
$custom: #a42f8f;
$custom-light: #c272b0;
$custom-dark: #000000;
JSON
{
  "hex": "#a42f8f",
  "rgb": {
    "r": 164,
    "g": 47,
    "b": 143
  },
  "hsl": {
    "h": 310.769,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.51637,
    "c": 0.1847,
    "h": 336.1
  },
  "luminance": 0.11909
}

Semantic roles & 50–950 ramp

primary
#A42F8F
secondary
#6FC07E
accent
#DF6449
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130910
muted
#827B7F

Preview Lab

Preview with #A42F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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