#AF2C7E#AF2C7E

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

Color values

HEX#AF2C7E
RGBrgb(175, 44, 126)
HSLhsl(322, 60%, 43%)
HSVhsv(322, 75%, 69%)
CMYKcmyk(0%, 74.9%, 28%, 31.4%)
CIE-LABlab(41.88, 59.11, -15.68)
CIE-LCHlch(41.88, 61.15, 345.15°)
OKLaboklab(52.34% 0.1798 -0.0414)
OKLCHoklch(52.34% 0.184 347)
XYZxyz(22.3468, 12.4242, 20.9559)
Luminance0.1242 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2C7E #2CAF5D
analogous
#9E2CAF #AF2C7E #AF2C3C
triadic
#AF2C7E #7EAF2C #2C7EAF
tetradic
#AF2C7E #AF9E2C #2CAF5D #2C3CAF
square
#AF2C7E #AF9E2C #2CAF5D #2C3CAF
split-complementary
#AF2C7E #3CAF2C #2CAF9E
monochromatic
#4D1338 #7E205B #AF2C7E #D1479D #DD78B7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF2C7E#FFFFFF#000000##FFFFFF
##AF2C7E1.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)
#3F5480
Deuteranopia (green-blind)
#666B7B
Tritanopia (blue-blind)
#BB2751
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af2c7e;
/* rgb */ color: rgb(175, 44, 126);
/* oklch */ color: oklch(52.3% 0.184 347.0);
Tailwind
colors: {
  custom: {
    50: '#cb72a3',
    500: '#af2c7e',
    950: '#000000',
  },
}
SCSS
$custom: #af2c7e;
$custom-light: #cb72a3;
$custom-dark: #000000;
JSON
{
  "hex": "#af2c7e",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 126
  },
  "hsl": {
    "h": 322.443,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.52342,
    "c": 0.18448,
    "h": 347
  },
  "luminance": 0.12422
}

Semantic roles & 50–950 ramp

primary
#AF2C7E
secondary
#72C591
accent
#E38045
background
#FDF7FA
surface
#FAEDF3
border
#D3C8CD
text
#14090F
muted
#837B7F

Preview Lab

Preview with #AF2C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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