#A42F7C#A42F7C

#A42F7C is a mid, vivid pink. Relative luminance 0.114; OKLCH L 50.7% C 0.172 H 344.6°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#A42F7C
RGBrgb(164, 47, 124)
HSLhsl(321, 55%, 41%)
HSVhsv(321, 71%, 64%)
CMYKcmyk(0%, 71.3%, 24.4%, 35.7%)
CIE-LABlab(40.22, 54.90, -17.16)
CIE-LCHlch(40.22, 57.52, 342.64°)
OKLaboklab(50.74% 0.1658 -0.0457)
OKLCHoklch(50.74% 0.172 344.6)
XYZxyz(19.9652, 11.3828, 20.2105)
Luminance0.1138 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42F7C #2FA457
analogous
#922FA4 #A42F7C #A42F42
triadic
#A42F7C #7CA42F #2F7CA4
tetradic
#A42F7C #A4922F #2FA457 #2F42A4
square
#A42F7C #A4922F #2FA457 #2F42A4
split-complementary
#A42F7C #42A42F #2FA492
monochromatic
#451434 #742158 #A42F7C #CA469D #D876B6

Accessibility & contrast

On white

6.41
#A42F7C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#A42F7C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42F7C
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42F7C#FFFFFF#000000##FFFFFF
##A42F7C1.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C527E
Deuteranopia (green-blind)
#5F6679
Tritanopia (blue-blind)
#AF2E51
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a42f7c;
/* rgb */ color: rgb(164, 47, 124);
/* oklch */ color: oklch(50.7% 0.172 344.6);
Tailwind
colors: {
  custom: {
    50: '#c372a2',
    500: '#a42f7c',
    950: '#000000',
  },
}
SCSS
$custom: #a42f7c;
$custom-light: #c372a2;
$custom-dark: #000000;
JSON
{
  "hex": "#a42f7c",
  "rgb": {
    "r": 164,
    "g": 47,
    "b": 124
  },
  "hsl": {
    "h": 320.513,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.50736,
    "c": 0.17195,
    "h": 344.6
  },
  "luminance": 0.11381
}

Semantic roles & 50–950 ramp

primary
#A42F7C
secondary
#6FC08B
accent
#DF7C49
background
#FCF7F9
surface
#F8EDF2
border
#D1C8CC
text
#13080F
muted
#827B7E

Preview Lab

Preview with #A42F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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