#AF2D7C#AF2D7C

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

Color values

HEX#AF2D7C
RGBrgb(175, 45, 124)
HSLhsl(324, 59%, 43%)
HSVhsv(324, 74%, 69%)
CMYKcmyk(0%, 74.3%, 29.1%, 31.4%)
CIE-LABlab(41.92, 58.53, -14.38)
CIE-LCHlch(41.92, 60.27, 346.19°)
OKLaboklab(52.34% 0.1783 -0.0378)
OKLCHoklch(52.34% 0.182 348)
XYZxyz(22.2568, 12.4485, 20.2956)
Luminance0.1245 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2D7C #2DAF60
analogous
#A12DAF #AF2D7C #AF2D3B
triadic
#AF2D7C #7CAF2D #2D7CAF
tetradic
#AF2D7C #AFA12D #2DAF60 #2D3BAF
square
#AF2D7C #AFA12D #2DAF60 #2D3BAF
split-complementary
#AF2D7C #3BAF2D #2DAFA1
monochromatic
#4E1437 #7E205A #AF2D7C #D0499B #DD7AB6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF2D7C#FFFFFF#000000##FFFFFF
##AF2D7C1.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)
#40547E
Deuteranopia (green-blind)
#666B79
Tritanopia (blue-blind)
#BC2751
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af2d7c;
/* rgb */ color: rgb(175, 45, 124);
/* oklch */ color: oklch(52.3% 0.182 348.0);
Tailwind
colors: {
  custom: {
    50: '#cb72a2',
    500: '#af2d7c',
    950: '#000000',
  },
}
SCSS
$custom: #af2d7c;
$custom-light: #cb72a2;
$custom-dark: #000000;
JSON
{
  "hex": "#af2d7c",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 124
  },
  "hsl": {
    "h": 323.538,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.52344,
    "c": 0.18226,
    "h": 348
  },
  "luminance": 0.12446
}

Semantic roles & 50–950 ramp

primary
#AF2D7C
secondary
#73C593
accent
#E28346
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090F
muted
#837B7E

Preview Lab

Preview with #AF2D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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