#AF428E#AF428E

#AF428E is a mid, vivid pink. Relative luminance 0.150; OKLCH L 55.3% C 0.166 H 341.4°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#AF428E
RGBrgb(175, 66, 142)
HSLhsl(318, 45%, 47%)
HSVhsv(318, 62%, 69%)
CMYKcmyk(0%, 62.3%, 18.9%, 31.4%)
CIE-LABlab(45.59, 52.79, -19.75)
CIE-LCHlch(45.59, 56.37, 339.49°)
OKLaboklab(55.27% 0.1572 -0.0529)
OKLCHoklch(55.27% 0.166 341.4)
XYZxyz(24.5105, 14.9656, 27.1837)
Luminance0.1496 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF428E #42AF63
analogous
#9942AF #AF428E #AF4258
triadic
#AF428E #8EAF42 #428EAF
tetradic
#AF428E #AF9942 #42AF63 #4258AF
square
#AF428E #AF9942 #42AF63 #4258AF
split-complementary
#AF428E #58AF42 #42AF99
monochromatic
#562046 #83316A #AF428E #C668AA #D795C3

Accessibility & contrast

On white

5.26
#AF428E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#AF428E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF428E
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF428E#FFFFFF#000000##FFFFFF
##AF428E1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#496190
Deuteranopia (green-blind)
#69728B
Tritanopia (blue-blind)
#B94462
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af428e;
/* rgb */ color: rgb(175, 66, 142);
/* oklch */ color: oklch(55.3% 0.166 341.4);
Tailwind
colors: {
  custom: {
    50: '#ca7daf',
    500: '#af428e',
    950: '#000000',
  },
}
SCSS
$custom: #af428e;
$custom-light: #ca7daf;
$custom-dark: #000000;
JSON
{
  "hex": "#af428e",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 142
  },
  "hsl": {
    "h": 318.165,
    "s": 45.228,
    "l": 47.255
  },
  "oklch": {
    "l": 0.55266,
    "c": 0.16589,
    "h": 341.4
  },
  "luminance": 0.14963
}

Semantic roles & 50–950 ramp

primary
#AF428E
secondary
#8AC29B
accent
#D57A53
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140A10
muted
#827C7F

Preview Lab

Preview with #AF428E

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

Preview Lab → · Contrast checker → · Palette generator →

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