#A42E8C#A42E8C

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

Color values

HEX#A42E8C
RGBrgb(164, 46, 140)
HSLhsl(312, 56%, 41%)
HSVhsv(312, 72%, 64%)
CMYKcmyk(0%, 72%, 14.6%, 35.7%)
CIE-LABlab(40.80, 57.53, -26.09)
CIE-LCHlch(40.80, 63.17, 335.61°)
OKLaboklab(51.39% 0.1696 -0.0709)
OKLCHoklch(51.39% 0.184 337.3)
XYZxyz(21.0209, 11.7419, 25.9652)
Luminance0.1174 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42E8C #2EA446
analogous
#812EA4 #A42E8C #A42E51
triadic
#A42E8C #8CA42E #2E8CA4
tetradic
#A42E8C #A4812E #2EA446 #2E51A4
square
#A42E8C #A4812E #2EA446 #2E51A4
split-complementary
#A42E8C #51A42E #2EA481
monochromatic
#44133A #742163 #A42E8C #CB45AF #D874C4

Accessibility & contrast

On white

6.27
#A42E8C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A42E8C
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42E8C#FFFFFF#000000##FFFFFF
##A42E8C1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32558F
Deuteranopia (green-blind)
#596789
Tritanopia (blue-blind)
#AD3559
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a42e8c;
/* rgb */ color: rgb(164, 46, 140);
/* oklch */ color: oklch(51.4% 0.184 337.3);
Tailwind
colors: {
  custom: {
    50: '#c372ae',
    500: '#a42e8c',
    950: '#000000',
  },
}
SCSS
$custom: #a42e8c;
$custom-light: #c372ae;
$custom-dark: #000000;
JSON
{
  "hex": "#a42e8c",
  "rgb": {
    "r": 164,
    "g": 46,
    "b": 140
  },
  "hsl": {
    "h": 312.203,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.51394,
    "c": 0.18377,
    "h": 337.3
  },
  "luminance": 0.1174
}

Semantic roles & 50–950 ramp

primary
#A42E8C
secondary
#6EC07F
accent
#DF6748
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130910
muted
#827B7F

Preview Lab

Preview with #A42E8C

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

Preview Lab → · Contrast checker → · Palette generator →

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