#A42F87#A42F87

#A42F87 is a mid, vivid pink. Relative luminance 0.117; OKLCH L 51.2% C 0.179 H 339.5°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#A42F87
RGBrgb(164, 47, 135)
HSLhsl(315, 55%, 41%)
HSVhsv(315, 71%, 64%)
CMYKcmyk(0%, 71.3%, 17.7%, 35.7%)
CIE-LABlab(40.70, 56.44, -23.19)
CIE-LCHlch(40.70, 61.02, 337.66°)
OKLaboklab(51.24% 0.1678 -0.0626)
OKLCHoklch(51.24% 0.179 339.5)
XYZxyz(20.7000, 11.6768, 24.0806)
Luminance0.1168 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42F87 #2FA44C
analogous
#872FA4 #A42F87 #A42F4D
triadic
#A42F87 #87A42F #2F87A4
tetradic
#A42F87 #A4872F #2FA44C #2F4DA4
square
#A42F87 #A4872F #2FA44C #2F4DA4
split-complementary
#A42F87 #4DA42F #2FA487
monochromatic
#451439 #742160 #A42F87 #CA46A9 #D876BF

Accessibility & contrast

On white

6.30
#A42F87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#A42F87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42F87
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42F87#FFFFFF#000000##FFFFFF
##A42F871.006.303.346.30
#FFFFFF6.301.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365489
Deuteranopia (green-blind)
#5B6784
Tritanopia (blue-blind)
#AE3357
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a42f87;
/* rgb */ color: rgb(164, 47, 135);
/* oklch */ color: oklch(51.2% 0.179 339.5);
Tailwind
colors: {
  custom: {
    50: '#c372aa',
    500: '#a42f87',
    950: '#000000',
  },
}
SCSS
$custom: #a42f87;
$custom-light: #c372aa;
$custom-dark: #000000;
JSON
{
  "hex": "#a42f87",
  "rgb": {
    "r": 164,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 314.872,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.51242,
    "c": 0.17909,
    "h": 339.5
  },
  "luminance": 0.11675
}

Semantic roles & 50–950 ramp

primary
#A42F87
secondary
#6FC083
accent
#DF6E49
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130910
muted
#827B7F

Preview Lab

Preview with #A42F87

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

Preview Lab → · Contrast checker → · Palette generator →

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