#AF2C7B#AF2C7B

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

Color values

HEX#AF2C7B
RGBrgb(175, 44, 123)
HSLhsl(324, 60%, 43%)
HSVhsv(324, 75%, 69%)
CMYKcmyk(0%, 74.9%, 29.7%, 31.4%)
CIE-LABlab(41.76, 58.74, -14.00)
CIE-LCHlch(41.76, 60.38, 346.59°)
OKLaboklab(52.22% 0.1791 -0.0368)
OKLCHoklch(52.22% 0.183 348.4)
XYZxyz(22.1561, 12.3479, 19.9516)
Luminance0.1235 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2C7B #2CAF60
analogous
#A12CAF #AF2C7B #AF2C39
triadic
#AF2C7B #7BAF2C #2C7BAF
tetradic
#AF2C7B #AFA12C #2CAF60 #2C39AF
square
#AF2C7B #AFA12C #2CAF60 #2C39AF
split-complementary
#AF2C7B #39AF2C #2CAFA1
monochromatic
#4D1336 #7E2059 #AF2C7B #D1479A #DD78B5

Accessibility & contrast

On white

6.05
#AF2C7B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2C7B
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2C7B#FFFFFF#000000##FFFFFF
##AF2C7B1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af2c7b;
/* rgb */ color: rgb(175, 44, 123);
/* oklch */ color: oklch(52.2% 0.183 348.4);
Tailwind
colors: {
  custom: {
    50: '#cb72a1',
    500: '#af2c7b',
    950: '#000000',
  },
}
SCSS
$custom: #af2c7b;
$custom-light: #cb72a1;
$custom-dark: #000000;
JSON
{
  "hex": "#af2c7b",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 123
  },
  "hsl": {
    "h": 323.817,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.52217,
    "c": 0.18283,
    "h": 348.4
  },
  "luminance": 0.12345
}

Semantic roles & 50–950 ramp

primary
#AF2C7B
secondary
#72C593
accent
#E38445
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090F
muted
#837B7E

Preview Lab

Preview with #AF2C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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