#A42F89#A42F89

#A42F89 is a mid, vivid pink. Relative luminance 0.117; OKLCH L 51.3% C 0.180 H 338.6°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#A42F89
RGBrgb(164, 47, 137)
HSLhsl(314, 55%, 41%)
HSVhsv(314, 71%, 64%)
CMYKcmyk(0%, 71.3%, 16.5%, 35.7%)
CIE-LABlab(40.79, 56.73, -24.28)
CIE-LCHlch(40.79, 61.71, 336.83°)
OKLaboklab(51.34% 0.1681 -0.0657)
OKLCHoklch(51.34% 0.18 338.6)
XYZxyz(20.8422, 11.7336, 24.8292)
Luminance0.1173 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42F89 #2FA44A
analogous
#852FA4 #A42F89 #A42F4F
triadic
#A42F89 #89A42F #2F89A4
tetradic
#A42F89 #A4852F #2FA44A #2F4FA4
square
#A42F89 #A4852F #2FA44A #2F4FA4
split-complementary
#A42F89 #4FA42F #2FA485
monochromatic
#45143A #742161 #A42F89 #CA46AC #D876C1

Accessibility & contrast

On white

6.28
#A42F89 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#A42F89 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42F89
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42F89#FFFFFF#000000##FFFFFF
##A42F891.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35548C
Deuteranopia (green-blind)
#5B6786
Tritanopia (blue-blind)
#AD3458
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a42f89;
/* rgb */ color: rgb(164, 47, 137);
/* oklch */ color: oklch(51.3% 0.180 338.6);
Tailwind
colors: {
  custom: {
    50: '#c272ab',
    500: '#a42f89',
    950: '#000000',
  },
}
SCSS
$custom: #a42f89;
$custom-light: #c272ab;
$custom-dark: #000000;
JSON
{
  "hex": "#a42f89",
  "rgb": {
    "r": 164,
    "g": 47,
    "b": 137
  },
  "hsl": {
    "h": 313.846,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.51339,
    "c": 0.18046,
    "h": 338.6
  },
  "luminance": 0.11732
}

Semantic roles & 50–950 ramp

primary
#A42F89
secondary
#6FC082
accent
#DF6C49
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130910
muted
#827B7F

Preview Lab

Preview with #A42F89

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

Preview Lab → · Contrast checker → · Palette generator →

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