#AF2C7F#AF2C7F

#AF2C7F is a mid, vivid pink. Relative luminance 0.124; OKLCH L 52.4% C 0.185 H 346.6°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#AF2C7F
RGBrgb(175, 44, 127)
HSLhsl(322, 60%, 43%)
HSVhsv(322, 75%, 69%)
CMYKcmyk(0%, 74.9%, 27.4%, 31.4%)
CIE-LABlab(41.92, 59.23, -16.23)
CIE-LCHlch(41.92, 61.41, 344.68°)
OKLaboklab(52.39% 0.18 -0.0429)
OKLCHoklch(52.39% 0.185 346.6)
XYZxyz(22.4117, 12.4501, 21.2974)
Luminance0.1245 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2C7F #2CAF5C
analogous
#9D2CAF #AF2C7F #AF2C3D
triadic
#AF2C7F #7FAF2C #2C7FAF
tetradic
#AF2C7F #AF9D2C #2CAF5C #2C3DAF
square
#AF2C7F #AF9D2C #2CAF5C #2C3DAF
split-complementary
#AF2C7F #3DAF2C #2CAF9D
monochromatic
#4D1338 #7E205C #AF2C7F #D1479E #DD78B8

Accessibility & contrast

On white

6.02
#AF2C7F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#AF2C7F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2C7F
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2C7F#FFFFFF#000000##FFFFFF
##AF2C7F1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5581
Deuteranopia (green-blind)
#656B7C
Tritanopia (blue-blind)
#BB2852
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af2c7f;
/* rgb */ color: rgb(175, 44, 127);
/* oklch */ color: oklch(52.4% 0.185 346.6);
Tailwind
colors: {
  custom: {
    50: '#cb72a4',
    500: '#af2c7f',
    950: '#000000',
  },
}
SCSS
$custom: #af2c7f;
$custom-light: #cb72a4;
$custom-dark: #000000;
JSON
{
  "hex": "#af2c7f",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 127
  },
  "hsl": {
    "h": 321.985,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.52385,
    "c": 0.18504,
    "h": 346.6
  },
  "luminance": 0.12448
}

Semantic roles & 50–950 ramp

primary
#AF2C7F
secondary
#72C590
accent
#E37F45
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#14090F
muted
#837B7F

Preview Lab

Preview with #AF2C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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