#AF428B#AF428B

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

Color values

HEX#AF428B
RGBrgb(175, 66, 139)
HSLhsl(320, 45%, 47%)
HSVhsv(320, 62%, 69%)
CMYKcmyk(0%, 62.3%, 20.6%, 31.4%)
CIE-LABlab(45.46, 52.36, -18.13)
CIE-LCHlch(45.46, 55.40, 340.90°)
OKLaboklab(55.14% 0.1566 -0.0484)
OKLCHoklch(55.14% 0.164 342.8)
XYZxyz(24.2883, 14.8767, 26.0134)
Luminance0.1487 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF428B #42AF66
analogous
#9D42AF #AF428B #AF4254
triadic
#AF428B #8BAF42 #428BAF
tetradic
#AF428B #AF9D42 #42AF66 #4254AF
square
#AF428B #AF9D42 #42AF66 #4254AF
split-complementary
#AF428B #54AF42 #42AF9D
monochromatic
#562044 #833168 #AF428B #C668A7 #D795C1

Accessibility & contrast

On white

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

On black

3.97
#AF428B on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##AF428B#FFFFFF#000000##FFFFFF
##AF428B1.005.283.975.28
#FFFFFF5.281.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B608D
Deuteranopia (green-blind)
#6A7288
Tritanopia (blue-blind)
#B94260
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af428b;
/* rgb */ color: rgb(175, 66, 139);
/* oklch */ color: oklch(55.1% 0.164 342.8);
Tailwind
colors: {
  custom: {
    50: '#ca7dad',
    500: '#af428b',
    950: '#000000',
  },
}
SCSS
$custom: #af428b;
$custom-light: #ca7dad;
$custom-dark: #000000;
JSON
{
  "hex": "#af428b",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 139
  },
  "hsl": {
    "h": 319.817,
    "s": 45.228,
    "l": 47.255
  },
  "oklch": {
    "l": 0.55136,
    "c": 0.16387,
    "h": 342.8
  },
  "luminance": 0.14874
}

Semantic roles & 50–950 ramp

primary
#AF428B
secondary
#8AC29D
accent
#D57E53
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140A10
muted
#827C7F

Preview Lab

Preview with #AF428B

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

Preview Lab → · Contrast checker → · Palette generator →

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