#A42E8D#A42E8D

#A42E8D is a mid, vivid pink. Relative luminance 0.118; OKLCH L 51.4% C 0.184 H 336.9°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#A42E8D
RGBrgb(164, 46, 141)
HSLhsl(312, 56%, 41%)
HSVhsv(312, 72%, 64%)
CMYKcmyk(0%, 72%, 14%, 35.7%)
CIE-LABlab(40.85, 57.68, -26.62)
CIE-LCHlch(40.85, 63.53, 335.22°)
OKLaboklab(51.44% 0.1697 -0.0724)
OKLCHoklch(51.44% 0.184 336.9)
XYZxyz(21.0949, 11.7715, 26.3553)
Luminance0.1177 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42E8D #2EA445
analogous
#802EA4 #A42E8D #A42E52
triadic
#A42E8D #8DA42E #2E8DA4
tetradic
#A42E8D #A4802E #2EA445 #2E52A4
square
#A42E8D #A4802E #2EA445 #2E52A4
split-complementary
#A42E8D #52A42E #2EA480
monochromatic
#44133B #742164 #A42E8D #CB45B1 #D874C5

Accessibility & contrast

On white

6.26
#A42E8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#A42E8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42E8D
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42E8D#FFFFFF#000000##FFFFFF
##A42E8D1.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315590
Deuteranopia (green-blind)
#59678A
Tritanopia (blue-blind)
#AD355A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a42e8d;
/* rgb */ color: rgb(164, 46, 141);
/* oklch */ color: oklch(51.4% 0.184 336.9);
Tailwind
colors: {
  custom: {
    50: '#c272ae',
    500: '#a42e8d',
    950: '#000000',
  },
}
SCSS
$custom: #a42e8d;
$custom-light: #c272ae;
$custom-dark: #000000;
JSON
{
  "hex": "#a42e8d",
  "rgb": {
    "r": 164,
    "g": 46,
    "b": 141
  },
  "hsl": {
    "h": 311.695,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.51444,
    "c": 0.18447,
    "h": 336.9
  },
  "luminance": 0.1177
}

Semantic roles & 50–950 ramp

primary
#A42E8D
secondary
#6EC07E
accent
#DF6648
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130910
muted
#827B7F

Preview Lab

Preview with #A42E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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