#AF2F79#AF2F79

#AF2F79 is a mid, vivid pink. Relative luminance 0.125; OKLCH L 52.4% C 0.178 H 349.6°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#AF2F79
RGBrgb(175, 47, 121)
HSLhsl(325, 58%, 44%)
HSVhsv(325, 73%, 69%)
CMYKcmyk(0%, 73.1%, 30.9%, 31.4%)
CIE-LABlab(42.05, 57.48, -12.34)
CIE-LCHlch(42.05, 58.79, 347.88°)
OKLaboklab(52.4% 0.1754 -0.0322)
OKLCHoklch(52.4% 0.178 349.6)
XYZxyz(22.1481, 12.5300, 19.3376)
Luminance0.1253 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F79 #2FAF65
analogous
#A52FAF #AF2F79 #AF2F39
triadic
#AF2F79 #79AF2F #2F79AF
tetradic
#AF2F79 #AFA52F #2FAF65 #2F39AF
square
#AF2F79 #AFA52F #2FAF65 #2F39AF
split-complementary
#AF2F79 #39AF2F #2FAFA5
monochromatic
#4F1536 #7F2258 #AF2F79 #CF4C98 #DC7CB4

Accessibility & contrast

On white

5.99
#AF2F79 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#AF2F79 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2F79
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F79#FFFFFF#000000##FFFFFF
##AF2F791.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#43557B
Deuteranopia (green-blind)
#686B76
Tritanopia (blue-blind)
#BC2850
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af2f79;
/* rgb */ color: rgb(175, 47, 121);
/* oklch */ color: oklch(52.4% 0.178 349.6);
Tailwind
colors: {
  custom: {
    50: '#cb739f',
    500: '#af2f79',
    950: '#000000',
  },
}
SCSS
$custom: #af2f79;
$custom-light: #cb739f;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f79",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 121
  },
  "hsl": {
    "h": 325.313,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.52398,
    "c": 0.17837,
    "h": 349.6
  },
  "luminance": 0.12527
}

Semantic roles & 50–950 ramp

primary
#AF2F79
secondary
#75C497
accent
#E18847
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090E
muted
#837B7E

Preview Lab

Preview with #AF2F79

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

Preview Lab → · Contrast checker → · Palette generator →

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