#AF2F7A#AF2F7A

#AF2F7A is a mid, vivid pink. Relative luminance 0.126; OKLCH L 52.4% C 0.179 H 349.1°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#AF2F7A
RGBrgb(175, 47, 122)
HSLhsl(325, 58%, 44%)
HSVhsv(325, 73%, 69%)
CMYKcmyk(0%, 73.1%, 30.3%, 31.4%)
CIE-LABlab(42.08, 57.60, -12.90)
CIE-LCHlch(42.08, 59.03, 347.38°)
OKLaboklab(52.44% 0.1757 -0.0338)
OKLCHoklch(52.44% 0.179 349.1)
XYZxyz(22.2097, 12.5546, 19.6623)
Luminance0.1255 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F7A #2FAF64
analogous
#A42FAF #AF2F7A #AF2F3A
triadic
#AF2F7A #7AAF2F #2F7AAF
tetradic
#AF2F7A #AFA42F #2FAF64 #2F3AAF
square
#AF2F7A #AFA42F #2FAF64 #2F3AAF
split-complementary
#AF2F7A #3AAF2F #2FAFA4
monochromatic
#4F1537 #7F2258 #AF2F7A #CF4C99 #DC7CB4

Accessibility & contrast

On white

5.98
#AF2F7A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2F7A
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F7A#FFFFFF#000000##FFFFFF
##AF2F7A1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af2f7a;
/* rgb */ color: rgb(175, 47, 122);
/* oklch */ color: oklch(52.4% 0.179 349.1);
Tailwind
colors: {
  custom: {
    50: '#cb73a0',
    500: '#af2f7a',
    950: '#000000',
  },
}
SCSS
$custom: #af2f7a;
$custom-light: #cb73a0;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f7a",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 122
  },
  "hsl": {
    "h": 324.844,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.52438,
    "c": 0.1789,
    "h": 349.1
  },
  "luminance": 0.12552
}

Semantic roles & 50–950 ramp

primary
#AF2F7A
secondary
#75C496
accent
#E18747
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090E
muted
#837B7E

Preview Lab

Preview with #AF2F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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