#A42F7D#A42F7D

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

Color values

HEX#A42F7D
RGBrgb(164, 47, 125)
HSLhsl(320, 55%, 41%)
HSVhsv(320, 71%, 64%)
CMYKcmyk(0%, 71.3%, 23.8%, 35.7%)
CIE-LABlab(40.26, 55.04, -17.71)
CIE-LCHlch(40.26, 57.82, 342.16°)
OKLaboklab(50.78% 0.166 -0.0472)
OKLCHoklch(50.78% 0.173 344.1)
XYZxyz(20.0288, 11.4083, 20.5453)
Luminance0.1141 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42F7D #2FA456
analogous
#912FA4 #A42F7D #A42F43
triadic
#A42F7D #7DA42F #2F7DA4
tetradic
#A42F7D #A4912F #2FA456 #2F43A4
square
#A42F7D #A4912F #2FA456 #2F43A4
split-complementary
#A42F7D #43A42F #2FA491
monochromatic
#451434 #742159 #A42F7D #CA469E #D876B7

Accessibility & contrast

On white

6.40
#A42F7D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A42F7D
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42F7D#FFFFFF#000000##FFFFFF
##A42F7D1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B527F
Deuteranopia (green-blind)
#5F667A
Tritanopia (blue-blind)
#AF2E52
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a42f7d;
/* rgb */ color: rgb(164, 47, 125);
/* oklch */ color: oklch(50.8% 0.173 344.1);
Tailwind
colors: {
  custom: {
    50: '#c372a2',
    500: '#a42f7d',
    950: '#000000',
  },
}
SCSS
$custom: #a42f7d;
$custom-light: #c372a2;
$custom-dark: #000000;
JSON
{
  "hex": "#a42f7d",
  "rgb": {
    "r": 164,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 320,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.5078,
    "c": 0.17257,
    "h": 344.1
  },
  "luminance": 0.11406
}

Semantic roles & 50–950 ramp

primary
#A42F7D
secondary
#6FC08A
accent
#DF7B49
background
#FCF7FA
surface
#F8EDF3
border
#D1C8CD
text
#13080F
muted
#827B7F

Preview Lab

Preview with #A42F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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