#AF2F74#AF2F74

#AF2F74 is a mid, vivid pink. Relative luminance 0.124; OKLCH L 52.2% C 0.176 H 352.0°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#AF2F74
RGBrgb(175, 47, 116)
HSLhsl(328, 58%, 44%)
HSVhsv(328, 73%, 69%)
CMYKcmyk(0%, 73.1%, 33.7%, 31.4%)
CIE-LABlab(41.86, 56.89, -9.52)
CIE-LCHlch(41.86, 57.68, 350.50°)
OKLaboklab(52.2% 0.1741 -0.0246)
OKLCHoklch(52.2% 0.176 352)
XYZxyz(21.8494, 12.4105, 17.7645)
Luminance0.1241 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2F74 #2FAF6A
analogous
#AA2FAF #AF2F74 #AF2F34
triadic
#AF2F74 #74AF2F #2F74AF
tetradic
#AF2F74 #AFAA2F #2FAF6A #2F34AF
square
#AF2F74 #AFAA2F #2FAF6A #2F34AF
split-complementary
#AF2F74 #34AF2F #2FAFAA
monochromatic
#4F1534 #7F2254 #AF2F74 #CF4C93 #DC7CB0

Accessibility & contrast

On white

6.03
#AF2F74 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#AF2F74 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2F74
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2F74#FFFFFF#000000##FFFFFF
##AF2F741.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#455476
Deuteranopia (green-blind)
#696B71
Tritanopia (blue-blind)
#BC254D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af2f74;
/* rgb */ color: rgb(175, 47, 116);
/* oklch */ color: oklch(52.2% 0.176 352.0);
Tailwind
colors: {
  custom: {
    50: '#cb739c',
    500: '#af2f74',
    950: '#000000',
  },
}
SCSS
$custom: #af2f74;
$custom-light: #cb739c;
$custom-dark: #000000;
JSON
{
  "hex": "#af2f74",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 116
  },
  "hsl": {
    "h": 327.656,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.52202,
    "c": 0.17585,
    "h": 352
  },
  "luminance": 0.12408
}

Semantic roles & 50–950 ramp

primary
#AF2F74
secondary
#75C49A
accent
#E18E47
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090E
muted
#837B7E

Preview Lab

Preview with #AF2F74

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

Preview Lab → · Contrast checker → · Palette generator →

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