#AF2272#AF2272

#AF2272 is a mid, vivid pink. Relative luminance 0.115; OKLCH L 51.1% C 0.188 H 351.7°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#AF2272
RGBrgb(175, 34, 114)
HSLhsl(326, 67%, 41%)
HSVhsv(326, 81%, 69%)
CMYKcmyk(0%, 80.6%, 34.9%, 31.4%)
CIE-LABlab(40.37, 60.68, -10.53)
CIE-LCHlch(40.37, 61.59, 350.16°)
OKLaboklab(51.09% 0.1863 -0.0272)
OKLCHoklch(51.09% 0.188 351.7)
XYZxyz(21.2898, 11.4755, 17.0102)
Luminance0.1147 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2272 #22AF5F
analogous
#A522AF #AF2272 #AF222C
triadic
#AF2272 #72AF22 #2272AF
tetradic
#AF2272 #AFA522 #22AF5F #222CAF
square
#AF2272 #AFA522 #22AF5F #222CAF
split-complementary
#AF2272 #2CAF22 #22AFA5
monochromatic
#490E2F #7C1851 #AF2272 #D83692 #E269AE

Accessibility & contrast

On white

6.37
#AF2272 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#AF2272 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2272
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2272#FFFFFF#000000##FFFFFF
##AF22721.006.373.296.37
#FFFFFF6.371.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E4F74
Deuteranopia (green-blind)
#66686F
Tritanopia (blue-blind)
#BD1248
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #af2272;
/* rgb */ color: rgb(175, 34, 114);
/* oklch */ color: oklch(51.1% 0.188 351.7);
Tailwind
colors: {
  custom: {
    50: '#cc6e9a',
    500: '#af2272',
    950: '#000000',
  },
}
SCSS
$custom: #af2272;
$custom-light: #cc6e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#af2272",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 114
  },
  "hsl": {
    "h": 325.957,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.5109,
    "c": 0.18826,
    "h": 351.7
  },
  "luminance": 0.11473
}

Semantic roles & 50–950 ramp

primary
#AF2272
secondary
#65C890
accent
#EA883D
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080E
muted
#837B7E

Preview Lab

Preview with #AF2272

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

Preview Lab → · Contrast checker → · Palette generator →

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