#A42F7E#A42F7E

#A42F7E is a mid, vivid pink. Relative luminance 0.114; OKLCH L 50.8% C 0.173 H 343.6°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#A42F7E
RGBrgb(164, 47, 126)
HSLhsl(319, 55%, 41%)
HSVhsv(319, 71%, 64%)
CMYKcmyk(0%, 71.3%, 23.2%, 35.7%)
CIE-LABlab(40.30, 55.17, -18.27)
CIE-LCHlch(40.30, 58.12, 341.68°)
OKLaboklab(50.83% 0.1662 -0.0488)
OKLCHoklch(50.83% 0.173 343.6)
XYZxyz(20.0930, 11.4340, 20.8834)
Luminance0.1143 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42F7E #2FA455
analogous
#902FA4 #A42F7E #A42F44
triadic
#A42F7E #7EA42F #2F7EA4
tetradic
#A42F7E #A4902F #2FA455 #2F44A4
square
#A42F7E #A4902F #2FA455 #2F44A4
split-complementary
#A42F7E #44A42F #2FA490
monochromatic
#451435 #742159 #A42F7E #CA469F #D876B8

Accessibility & contrast

On white

6.39
#A42F7E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#A42F7E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42F7E
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42F7E#FFFFFF#000000##FFFFFF
##A42F7E1.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5380
Deuteranopia (green-blind)
#5F667B
Tritanopia (blue-blind)
#AF2F52
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a42f7e;
/* rgb */ color: rgb(164, 47, 126);
/* oklch */ color: oklch(50.8% 0.173 343.6);
Tailwind
colors: {
  custom: {
    50: '#c372a3',
    500: '#a42f7e',
    950: '#000000',
  },
}
SCSS
$custom: #a42f7e;
$custom-light: #c372a3;
$custom-dark: #000000;
JSON
{
  "hex": "#a42f7e",
  "rgb": {
    "r": 164,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 319.487,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.50825,
    "c": 0.17319,
    "h": 343.6
  },
  "luminance": 0.11432
}

Semantic roles & 50–950 ramp

primary
#A42F7E
secondary
#6FC089
accent
#DF7A49
background
#FCF7FA
surface
#F8EDF3
border
#D1C8CD
text
#13080F
muted
#827B7F

Preview Lab

Preview with #A42F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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