#AF2C7C#AF2C7C

#AF2C7C is a mid, vivid pink. Relative luminance 0.124; OKLCH L 52.3% C 0.183 H 347.9°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#AF2C7C
RGBrgb(175, 44, 124)
HSLhsl(323, 60%, 43%)
HSVhsv(323, 75%, 69%)
CMYKcmyk(0%, 74.9%, 29.1%, 31.4%)
CIE-LABlab(41.80, 58.86, -14.56)
CIE-LCHlch(41.80, 60.63, 346.10°)
OKLaboklab(52.26% 0.1793 -0.0383)
OKLCHoklch(52.26% 0.183 347.9)
XYZxyz(22.2191, 12.3731, 20.2830)
Luminance0.1237 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2C7C #2CAF5F
analogous
#A02CAF #AF2C7C #AF2C3A
triadic
#AF2C7C #7CAF2C #2C7CAF
tetradic
#AF2C7C #AFA02C #2CAF5F #2C3AAF
square
#AF2C7C #AFA02C #2CAF5F #2C3AAF
split-complementary
#AF2C7C #3AAF2C #2CAFA0
monochromatic
#4D1337 #7E2059 #AF2C7C #D1479B #DD78B6

Accessibility & contrast

On white

6.04
#AF2C7C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#AF2C7C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2C7C
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2C7C#FFFFFF#000000##FFFFFF
##AF2C7C1.006.043.476.04
#FFFFFF6.041.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#40547E
Deuteranopia (green-blind)
#666B79
Tritanopia (blue-blind)
#BC2650
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af2c7c;
/* rgb */ color: rgb(175, 44, 124);
/* oklch */ color: oklch(52.3% 0.183 347.9);
Tailwind
colors: {
  custom: {
    50: '#cb72a2',
    500: '#af2c7c',
    950: '#000000',
  },
}
SCSS
$custom: #af2c7c;
$custom-light: #cb72a2;
$custom-dark: #000000;
JSON
{
  "hex": "#af2c7c",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 124
  },
  "hsl": {
    "h": 323.359,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.52258,
    "c": 0.18337,
    "h": 347.9
  },
  "luminance": 0.12371
}

Semantic roles & 50–950 ramp

primary
#AF2C7C
secondary
#72C592
accent
#E38245
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090F
muted
#837B7E

Preview Lab

Preview with #AF2C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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