#AF428C#AF428C

#AF428C is a mid, vivid pink. Relative luminance 0.149; OKLCH L 55.2% C 0.165 H 342.3°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#AF428C
RGBrgb(175, 66, 140)
HSLhsl(319, 45%, 47%)
HSVhsv(319, 62%, 69%)
CMYKcmyk(0%, 62.3%, 20%, 31.4%)
CIE-LABlab(45.51, 52.50, -18.67)
CIE-LCHlch(45.51, 55.72, 340.42°)
OKLaboklab(55.18% 0.1568 -0.0499)
OKLCHoklch(55.18% 0.165 342.3)
XYZxyz(24.3617, 14.9060, 26.4000)
Luminance0.1490 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF428C #42AF65
analogous
#9C42AF #AF428C #AF4256
triadic
#AF428C #8CAF42 #428CAF
tetradic
#AF428C #AF9C42 #42AF65 #4256AF
square
#AF428C #AF9C42 #42AF65 #4256AF
split-complementary
#AF428C #56AF42 #42AF9C
monochromatic
#562045 #833168 #AF428C #C668A8 #D795C2

Accessibility & contrast

On white

5.28
#AF428C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#AF428C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF428C
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF428C#FFFFFF#000000##FFFFFF
##AF428C1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A608E
Deuteranopia (green-blind)
#6A7289
Tritanopia (blue-blind)
#B94361
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af428c;
/* rgb */ color: rgb(175, 66, 140);
/* oklch */ color: oklch(55.2% 0.165 342.3);
Tailwind
colors: {
  custom: {
    50: '#ca7dad',
    500: '#af428c',
    950: '#000000',
  },
}
SCSS
$custom: #af428c;
$custom-light: #ca7dad;
$custom-dark: #000000;
JSON
{
  "hex": "#af428c",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 140
  },
  "hsl": {
    "h": 319.266,
    "s": 45.228,
    "l": 47.255
  },
  "oklch": {
    "l": 0.55179,
    "c": 0.16455,
    "h": 342.3
  },
  "luminance": 0.14904
}

Semantic roles & 50–950 ramp

primary
#AF428C
secondary
#8AC29C
accent
#D57D53
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140A10
muted
#827C7F

Preview Lab

Preview with #AF428C

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

Preview Lab → · Contrast checker → · Palette generator →

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