#AF2C7A#AF2C7A

#AF2C7A is a mid, vivid pink. Relative luminance 0.123; OKLCH L 52.2% C 0.182 H 348.8°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#AF2C7A
RGBrgb(175, 44, 122)
HSLhsl(324, 60%, 43%)
HSVhsv(324, 75%, 69%)
CMYKcmyk(0%, 74.9%, 30.3%, 31.4%)
CIE-LABlab(41.72, 58.62, -13.45)
CIE-LCHlch(41.72, 60.14, 347.08°)
OKLaboklab(52.18% 0.1789 -0.0353)
OKLCHoklch(52.18% 0.182 348.8)
XYZxyz(22.0939, 12.3230, 19.6236)
Luminance0.1232 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2C7A #2CAF61
analogous
#A22CAF #AF2C7A #AF2C38
triadic
#AF2C7A #7AAF2C #2C7AAF
tetradic
#AF2C7A #AFA22C #2CAF61 #2C38AF
square
#AF2C7A #AFA22C #2CAF61 #2C38AF
split-complementary
#AF2C7A #38AF2C #2CAFA2
monochromatic
#4D1336 #7E2058 #AF2C7A #D14799 #DD78B4

Accessibility & contrast

On white

6.06
#AF2C7A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#AF2C7A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2C7A
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2C7A#FFFFFF#000000##FFFFFF
##AF2C7A1.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#40547C
Deuteranopia (green-blind)
#676B77
Tritanopia (blue-blind)
#BC254F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af2c7a;
/* rgb */ color: rgb(175, 44, 122);
/* oklch */ color: oklch(52.2% 0.182 348.8);
Tailwind
colors: {
  custom: {
    50: '#cb72a0',
    500: '#af2c7a',
    950: '#000000',
  },
}
SCSS
$custom: #af2c7a;
$custom-light: #cb72a0;
$custom-dark: #000000;
JSON
{
  "hex": "#af2c7a",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 122
  },
  "hsl": {
    "h": 324.275,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.52176,
    "c": 0.18229,
    "h": 348.8
  },
  "luminance": 0.1232
}

Semantic roles & 50–950 ramp

primary
#AF2C7A
secondary
#72C593
accent
#E38545
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090E
muted
#837B7E

Preview Lab

Preview with #AF2C7A

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

Preview Lab → · Contrast checker → · Palette generator →

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