#A42F8A#A42F8A

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

Color values

HEX#A42F8A
RGBrgb(164, 47, 138)
HSLhsl(313, 55%, 41%)
HSVhsv(313, 71%, 64%)
CMYKcmyk(0%, 71.3%, 15.9%, 35.7%)
CIE-LABlab(40.84, 56.88, -24.81)
CIE-LCHlch(40.84, 62.05, 336.43°)
OKLaboklab(51.39% 0.1682 -0.0672)
OKLCHoklch(51.39% 0.181 338.2)
XYZxyz(20.9142, 11.7625, 25.2087)
Luminance0.1176 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42F8A #2FA449
analogous
#842FA4 #A42F8A #A42F50
triadic
#A42F8A #8AA42F #2F8AA4
tetradic
#A42F8A #A4842F #2FA449 #2F50A4
square
#A42F8A #A4842F #2FA449 #2F50A4
split-complementary
#A42F8A #50A42F #2FA484
monochromatic
#45143A #742162 #A42F8A #CA46AD #D876C2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A42F8A#FFFFFF#000000##FFFFFF
##A42F8A1.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)
#34558D
Deuteranopia (green-blind)
#5A6787
Tritanopia (blue-blind)
#AD3458
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a42f8a;
/* rgb */ color: rgb(164, 47, 138);
/* oklch */ color: oklch(51.4% 0.181 338.2);
Tailwind
colors: {
  custom: {
    50: '#c272ac',
    500: '#a42f8a',
    950: '#000000',
  },
}
SCSS
$custom: #a42f8a;
$custom-light: #c272ac;
$custom-dark: #000000;
JSON
{
  "hex": "#a42f8a",
  "rgb": {
    "r": 164,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 313.333,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.51388,
    "c": 0.18116,
    "h": 338.2
  },
  "luminance": 0.11761
}

Semantic roles & 50–950 ramp

primary
#A42F8A
secondary
#6FC081
accent
#DF6A49
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130910
muted
#827B7F

Preview Lab

Preview with #A42F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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