#A42F7F#A42F7F

#A42F7F is a mid, vivid pink. Relative luminance 0.115; OKLCH L 50.9% C 0.174 H 343.2°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#A42F7F
RGBrgb(164, 47, 127)
HSLhsl(319, 55%, 41%)
HSVhsv(319, 71%, 64%)
CMYKcmyk(0%, 71.3%, 22.6%, 35.7%)
CIE-LABlab(40.34, 55.31, -18.82)
CIE-LCHlch(40.34, 58.42, 341.21°)
OKLaboklab(50.87% 0.1664 -0.0503)
OKLCHoklch(50.87% 0.174 343.2)
XYZxyz(20.1578, 11.4599, 21.2249)
Luminance0.1146 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42F7F #2FA454
analogous
#8F2FA4 #A42F7F #A42F45
triadic
#A42F7F #7FA42F #2F7FA4
tetradic
#A42F7F #A48F2F #2FA454 #2F45A4
square
#A42F7F #A48F2F #2FA454 #2F45A4
split-complementary
#A42F7F #45A42F #2FA48F
monochromatic
#451435 #74215A #A42F7F #CA46A0 #D876B9

Accessibility & contrast

On white

6.38
#A42F7F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A42F7F
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42F7F#FFFFFF#000000##FFFFFF
##A42F7F1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5381
Deuteranopia (green-blind)
#5E667C
Tritanopia (blue-blind)
#AF2F53
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a42f7f;
/* rgb */ color: rgb(164, 47, 127);
/* oklch */ color: oklch(50.9% 0.174 343.2);
Tailwind
colors: {
  custom: {
    50: '#c372a4',
    500: '#a42f7f',
    950: '#000000',
  },
}
SCSS
$custom: #a42f7f;
$custom-light: #c372a4;
$custom-dark: #000000;
JSON
{
  "hex": "#a42f7f",
  "rgb": {
    "r": 164,
    "g": 47,
    "b": 127
  },
  "hsl": {
    "h": 318.974,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.5087,
    "c": 0.17382,
    "h": 343.2
  },
  "luminance": 0.11458
}

Semantic roles & 50–950 ramp

primary
#A42F7F
secondary
#6FC089
accent
#DF7849
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#13080F
muted
#827B7F

Preview Lab

Preview with #A42F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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