#AF2772#AF2772

#AF2772 is a mid, vivid pink. Relative luminance 0.118; OKLCH L 51.5% C 0.184 H 352.1°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#AF2772
RGBrgb(175, 39, 114)
HSLhsl(327, 64%, 42%)
HSVhsv(327, 78%, 69%)
CMYKcmyk(0%, 77.7%, 34.9%, 31.4%)
CIE-LABlab(40.87, 59.26, -9.78)
CIE-LCHlch(40.87, 60.06, 350.63°)
OKLaboklab(51.45% 0.1818 -0.0252)
OKLCHoklch(51.45% 0.184 352.1)
XYZxyz(21.4433, 11.7825, 17.0614)
Luminance0.1178 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2772 #27AF64
analogous
#A827AF #AF2772 #AF272E
triadic
#AF2772 #72AF27 #2772AF
tetradic
#AF2772 #AFA827 #27AF64 #272EAF
square
#AF2772 #AFA827 #27AF64 #272EAF
split-complementary
#AF2772 #2EAF27 #27AFA8
monochromatic
#4B1131 #7D1C51 #AF2772 #D43F91 #DF71AE

Accessibility & contrast

On white

6.26
#AF2772 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#AF2772 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2772
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2772#FFFFFF#000000##FFFFFF
##AF27721.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#415174
Deuteranopia (green-blind)
#67696F
Tritanopia (blue-blind)
#BD1A49
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af2772;
/* rgb */ color: rgb(175, 39, 114);
/* oklch */ color: oklch(51.5% 0.184 352.1);
Tailwind
colors: {
  custom: {
    50: '#cc6f9a',
    500: '#af2772',
    950: '#000000',
  },
}
SCSS
$custom: #af2772;
$custom-light: #cc6f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#af2772",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 114
  },
  "hsl": {
    "h": 326.912,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51452,
    "c": 0.18352,
    "h": 352.1
  },
  "luminance": 0.1178
}

Semantic roles & 50–950 ramp

primary
#AF2772
secondary
#6BC694
accent
#E78B41
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080E
muted
#837B7E

Preview Lab

Preview with #AF2772

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

Preview Lab → · Contrast checker → · Palette generator →

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