#A42E7B#A42E7B

#A42E7B is a mid, vivid pink. Relative luminance 0.113; OKLCH L 50.6% C 0.173 H 345.0°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#A42E7B
RGBrgb(164, 46, 123)
HSLhsl(321, 56%, 41%)
HSVhsv(321, 72%, 64%)
CMYKcmyk(0%, 72%, 25%, 35.7%)
CIE-LABlab(40.05, 55.14, -16.80)
CIE-LCHlch(40.05, 57.64, 343.05°)
OKLaboklab(50.6% 0.1667 -0.0447)
OKLCHoklch(50.6% 0.173 345)
XYZxyz(19.8628, 11.2786, 19.8660)
Luminance0.1128 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42E7B #2EA457
analogous
#922EA4 #A42E7B #A42E40
triadic
#A42E7B #7BA42E #2E7BA4
tetradic
#A42E7B #A4922E #2EA457 #2E40A4
square
#A42E7B #A4922E #2EA457 #2E40A4
split-complementary
#A42E7B #40A42E #2EA492
monochromatic
#441333 #742157 #A42E7B #CB459C #D874B5

Accessibility & contrast

On white

6.45
#A42E7B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#A42E7B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42E7B
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42E7B#FFFFFF#000000##FFFFFF
##A42E7B1.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C527D
Deuteranopia (green-blind)
#5F6678
Tritanopia (blue-blind)
#AF2C50
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #a42e7b;
/* rgb */ color: rgb(164, 46, 123);
/* oklch */ color: oklch(50.6% 0.173 345.0);
Tailwind
colors: {
  custom: {
    50: '#c371a1',
    500: '#a42e7b',
    950: '#000000',
  },
}
SCSS
$custom: #a42e7b;
$custom-light: #c371a1;
$custom-dark: #000000;
JSON
{
  "hex": "#a42e7b",
  "rgb": {
    "r": 164,
    "g": 46,
    "b": 123
  },
  "hsl": {
    "h": 320.847,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.50597,
    "c": 0.17258,
    "h": 345
  },
  "luminance": 0.11277
}

Semantic roles & 50–950 ramp

primary
#A42E7B
secondary
#6EC08A
accent
#DF7D48
background
#FCF7F9
surface
#F8EDF2
border
#D1C8CC
text
#13080F
muted
#827B7E

Preview Lab

Preview with #A42E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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