#AF3F7A#AF3F7A

#AF3F7A is a mid, vivid pink. Relative luminance 0.141; OKLCH L 54.1% C 0.158 H 351.0°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#AF3F7A
RGBrgb(175, 63, 122)
HSLhsl(328, 47%, 47%)
HSVhsv(328, 64%, 69%)
CMYKcmyk(0%, 64%, 30.3%, 31.4%)
CIE-LABlab(44.34, 51.35, -9.49)
CIE-LCHlch(44.34, 52.22, 349.53°)
OKLaboklab(54.1% 0.1562 -0.0246)
OKLCHoklch(54.1% 0.158 351)
XYZxyz(22.9706, 14.0765, 19.9159)
Luminance0.1407 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3F7A #3FAF74
analogous
#AC3FAF #AF3F7A #AF3F42
triadic
#AF3F7A #7AAF3F #3F7AAF
tetradic
#AF3F7A #AFAC3F #3FAF74 #3F42AF
square
#AF3F7A #AFAC3F #3FAF74 #3F42AF
split-complementary
#AF3F7A #42AF3F #3FAFAC
monochromatic
#551F3B #822F5B #AF3F7A #C76498 #D791B6

Accessibility & contrast

On white

5.50
#AF3F7A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#AF3F7A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3F7A
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3F7A#FFFFFF#000000##FFFFFF
##AF3F7A1.005.503.815.50
#FFFFFF5.501.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F5C7C
Deuteranopia (green-blind)
#6E7077
Tritanopia (blue-blind)
#BB3957
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af3f7a;
/* rgb */ color: rgb(175, 63, 122);
/* oklch */ color: oklch(54.1% 0.158 351.0);
Tailwind
colors: {
  custom: {
    50: '#ca7ba0',
    500: '#af3f7a',
    950: '#000000',
  },
}
SCSS
$custom: #af3f7a;
$custom-light: #ca7ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#af3f7a",
  "rgb": {
    "r": 175,
    "g": 63,
    "b": 122
  },
  "hsl": {
    "h": 328.393,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.54097,
    "c": 0.15813,
    "h": 351
  },
  "luminance": 0.14074
}

Semantic roles & 50–950 ramp

primary
#AF3F7A
secondary
#87C3A3
accent
#D79051
background
#FCF7F9
surface
#F9EEF2
border
#D2C9CC
text
#140A0E
muted
#827C7E

Preview Lab

Preview with #AF3F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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