#AF4C7D#AF4C7D

#AF4C7D is a mid, vivid pink. Relative luminance 0.158; OKLCH L 55.9% C 0.140 H 351.7°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#AF4C7D
RGBrgb(175, 76, 125)
HSLhsl(330, 39%, 49%)
HSVhsv(330, 57%, 69%)
CMYKcmyk(0%, 56.6%, 28.6%, 31.4%)
CIE-LABlab(46.67, 45.77, -7.84)
CIE-LCHlch(46.67, 46.44, 350.28°)
OKLaboklab(55.86% 0.1387 -0.0202)
OKLCHoklch(55.86% 0.14 351.7)
XYZxyz(23.9663, 15.7658, 21.1790)
Luminance0.1576 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4C7D #4CAF7E
analogous
#AF4CAF #AF4C7D #AF4D4C
triadic
#AF4C7D #7DAF4C #4C7DAF
tetradic
#AF4C7D #AFAF4C #4CAF7E #4D4CAF
square
#AF4C7D #AFAF4C #4CAF7E #4D4CAF
split-complementary
#AF4C7D #4CAF4D #4CAFAF
monochromatic
#5A2740 #84395F #AF4C7D #C3759C #D6A0BA

Accessibility & contrast

On white

5.06
#AF4C7D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#AF4C7D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4C7D
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4C7D#FFFFFF#000000##FFFFFF
##AF4C7D1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#59647F
Deuteranopia (green-blind)
#73757B
Tritanopia (blue-blind)
#BB485F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af4c7d;
/* rgb */ color: rgb(175, 76, 125);
/* oklch */ color: oklch(55.9% 0.140 351.7);
Tailwind
colors: {
  custom: {
    50: '#ca82a2',
    500: '#af4c7d',
    950: '#000000',
  },
}
SCSS
$custom: #af4c7d;
$custom-light: #ca82a2;
$custom-dark: #000000;
JSON
{
  "hex": "#af4c7d",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 125
  },
  "hsl": {
    "h": 330.303,
    "s": 39.442,
    "l": 49.216
  },
  "oklch": {
    "l": 0.55855,
    "c": 0.14014,
    "h": 351.7
  },
  "luminance": 0.15764
}

Semantic roles & 50–950 ramp

primary
#AF4C7D
secondary
#94C2AC
accent
#CF9558
background
#FCF8F9
surface
#F9EFF2
border
#D2CACC
text
#140B0F
muted
#827C7E

Preview Lab

Preview with #AF4C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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