#AF4A7D#AF4A7D

#AF4A7D is a mid, vivid pink. Relative luminance 0.155; OKLCH L 55.6% C 0.143 H 351.3°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#AF4A7D
RGBrgb(175, 74, 125)
HSLhsl(330, 41%, 49%)
HSVhsv(330, 58%, 69%)
CMYKcmyk(0%, 57.7%, 28.6%, 31.4%)
CIE-LABlab(46.30, 46.73, -8.38)
CIE-LCHlch(46.30, 47.48, 349.84°)
OKLaboklab(55.59% 0.1416 -0.0217)
OKLCHoklch(55.59% 0.143 351.3)
XYZxyz(23.8306, 15.4945, 21.1337)
Luminance0.1549 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4A7D #4AAF7C
analogous
#AF4AAF #AF4A7D #AF4A4B
triadic
#AF4A7D #7DAF4A #4A7DAF
tetradic
#AF4A7D #AFAF4A #4AAF7C #4A4BAF
square
#AF4A7D #AFAF4A #4AAF7C #4A4BAF
split-complementary
#AF4A7D #4BAF4A #4AAFAF
monochromatic
#592640 #84385E #AF4A7D #C4739C #D69EBA

Accessibility & contrast

On white

5.12
#AF4A7D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#AF4A7D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4A7D
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4A7D#FFFFFF#000000##FFFFFF
##AF4A7D1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#57627F
Deuteranopia (green-blind)
#72747B
Tritanopia (blue-blind)
#BB465E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #af4a7d;
/* rgb */ color: rgb(175, 74, 125);
/* oklch */ color: oklch(55.6% 0.143 351.3);
Tailwind
colors: {
  custom: {
    50: '#ca81a2',
    500: '#af4a7d',
    950: '#000000',
  },
}
SCSS
$custom: #af4a7d;
$custom-light: #ca81a2;
$custom-dark: #000000;
JSON
{
  "hex": "#af4a7d",
  "rgb": {
    "r": 175,
    "g": 74,
    "b": 125
  },
  "hsl": {
    "h": 329.703,
    "s": 40.562,
    "l": 48.824
  },
  "oklch": {
    "l": 0.55586,
    "c": 0.14327,
    "h": 351.3
  },
  "luminance": 0.15492
}

Semantic roles & 50–950 ramp

primary
#AF4A7D
secondary
#92C2AA
accent
#D09357
background
#FCF8F9
surface
#F9EFF2
border
#D2CACC
text
#140B0F
muted
#827C7E

Preview Lab

Preview with #AF4A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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