#AF4F7D#AF4F7D

#AF4F7D is a mid, vivid pink. Relative luminance 0.162; OKLCH L 56.3% C 0.135 H 352.3°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#AF4F7D
RGBrgb(175, 79, 125)
HSLhsl(331, 38%, 50%)
HSVhsv(331, 55%, 69%)
CMYKcmyk(0%, 54.9%, 28.6%, 31.4%)
CIE-LABlab(47.22, 44.30, -7.01)
CIE-LCHlch(47.22, 44.85, 351.01°)
OKLaboklab(56.27% 0.1342 -0.018)
OKLCHoklch(56.27% 0.135 352.3)
XYZxyz(24.1778, 16.1888, 21.2495)
Luminance0.1619 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4F7D #4FAF81
analogous
#AF4FAD #AF4F7D #AF514F
triadic
#AF4F7D #7DAF4F #4F7DAF
tetradic
#AF4F7D #ADAF4F #4FAF81 #514FAF
square
#AF4F7D #ADAF4F #4FAF81 #514FAF
split-complementary
#AF4F7D #4FAF51 #4FADAF
monochromatic
#5B2941 #853C5F #AF4F7D #C2799C #D5A3BB

Accessibility & contrast

On white

4.96
#AF4F7D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#AF4F7D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4F7D
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4F7D#FFFFFF#000000##FFFFFF
##AF4F7D1.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B657E
Deuteranopia (green-blind)
#75767B
Tritanopia (blue-blind)
#BB4B61
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af4f7d;
/* rgb */ color: rgb(175, 79, 125);
/* oklch */ color: oklch(56.3% 0.135 352.3);
Tailwind
colors: {
  custom: {
    50: '#ca84a2',
    500: '#af4f7d',
    950: '#000000',
  },
}
SCSS
$custom: #af4f7d;
$custom-light: #ca84a2;
$custom-dark: #000000;
JSON
{
  "hex": "#af4f7d",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 125
  },
  "hsl": {
    "h": 331.25,
    "s": 37.795,
    "l": 49.804
  },
  "oklch": {
    "l": 0.5627,
    "c": 0.13536,
    "h": 352.3
  },
  "luminance": 0.16187
}

Semantic roles & 50–950 ramp

primary
#AF4F7D
secondary
#97C3AE
accent
#CE965A
background
#FCF8F9
surface
#F9EFF2
border
#D2CACC
text
#140B0F
muted
#827C7E

Preview Lab

Preview with #AF4F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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