#AF4F96#AF4F96

#AF4F96 is a mid, vivid pink. Relative luminance 0.169; OKLCH L 57.3% C 0.152 H 338.5°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#AF4F96
RGBrgb(175, 79, 150)
HSLhsl(316, 38%, 50%)
HSVhsv(316, 55%, 69%)
CMYKcmyk(0%, 54.9%, 14.3%, 31.4%)
CIE-LABlab(48.15, 48.00, -20.61)
CIE-LCHlch(48.15, 52.24, 336.76°)
OKLaboklab(57.26% 0.141 -0.0555)
OKLCHoklch(57.26% 0.152 338.5)
XYZxyz(25.9805, 16.9099, 30.7438)
Luminance0.1691 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4F96 #4FAF68
analogous
#984FAF #AF4F96 #AF4F66
triadic
#AF4F96 #96AF4F #4F96AF
tetradic
#AF4F96 #AF984F #4FAF68 #4F66AF
square
#AF4F96 #AF984F #4FAF68 #4F66AF
split-complementary
#AF4F96 #66AF4F #4FAF98
monochromatic
#5B294E #853C72 #AF4F96 #C279AF #D5A3C8

Accessibility & contrast

On white

4.79
#AF4F96 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#AF4F96 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4F96
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4F96#FFFFFF#000000##FFFFFF
##AF4F961.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#526998
Deuteranopia (green-blind)
#6E7893
Tritanopia (blue-blind)
#B8526C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af4f96;
/* rgb */ color: rgb(175, 79, 150);
/* oklch */ color: oklch(57.3% 0.152 338.5);
Tailwind
colors: {
  custom: {
    50: '#c985b5',
    500: '#af4f96',
    950: '#000000',
  },
}
SCSS
$custom: #af4f96;
$custom-light: #c985b5;
$custom-dark: #000000;
JSON
{
  "hex": "#af4f96",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 150
  },
  "hsl": {
    "h": 315.625,
    "s": 37.795,
    "l": 49.804
  },
  "oklch": {
    "l": 0.57262,
    "c": 0.15151,
    "h": 338.5
  },
  "luminance": 0.16908
}

Semantic roles & 50–950 ramp

primary
#AF4F96
secondary
#97C3A2
accent
#CE785A
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#130B11
muted
#827C80

Preview Lab

Preview with #AF4F96

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

Preview Lab → · Contrast checker → · Palette generator →

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