#A42E8F#A42E8F

#A42E8F is a mid, vivid pink. Relative luminance 0.118; OKLCH L 51.5% C 0.186 H 336.1°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#A42E8F
RGBrgb(164, 46, 143)
HSLhsl(311, 56%, 41%)
HSVhsv(311, 72%, 64%)
CMYKcmyk(0%, 72%, 12.8%, 35.7%)
CIE-LABlab(40.95, 57.98, -27.69)
CIE-LCHlch(40.95, 64.25, 334.47°)
OKLaboklab(51.55% 0.1699 -0.0754)
OKLCHoklch(51.55% 0.186 336.1)
XYZxyz(21.2451, 11.8316, 27.1461)
Luminance0.1183 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42E8F #2EA443
analogous
#7E2EA4 #A42E8F #A42E54
triadic
#A42E8F #8FA42E #2E8FA4
tetradic
#A42E8F #A47E2E #2EA443 #2E54A4
square
#A42E8F #A47E2E #2EA443 #2E54A4
split-complementary
#A42E8F #54A42E #2EA47E
monochromatic
#44133C #742165 #A42E8F #CB45B3 #D874C6

Accessibility & contrast

On white

6.24
#A42E8F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#A42E8F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42E8F
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42E8F#FFFFFF#000000##FFFFFF
##A42E8F1.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305592
Deuteranopia (green-blind)
#58678C
Tritanopia (blue-blind)
#AC365B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a42e8f;
/* rgb */ color: rgb(164, 46, 143);
/* oklch */ color: oklch(51.5% 0.186 336.1);
Tailwind
colors: {
  custom: {
    50: '#c272b0',
    500: '#a42e8f',
    950: '#000000',
  },
}
SCSS
$custom: #a42e8f;
$custom-light: #c272b0;
$custom-dark: #000000;
JSON
{
  "hex": "#a42e8f",
  "rgb": {
    "r": 164,
    "g": 46,
    "b": 143
  },
  "hsl": {
    "h": 310.678,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.51546,
    "c": 0.1859,
    "h": 336.1
  },
  "luminance": 0.1183
}

Semantic roles & 50–950 ramp

primary
#A42E8F
secondary
#6EC07D
accent
#DF6348
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130910
muted
#827B7F

Preview Lab

Preview with #A42E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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