#AF2771#AF2771

#AF2771 is a mid, vivid pink. Relative luminance 0.118; OKLCH L 51.4% C 0.183 H 352.6°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#AF2771
RGBrgb(175, 39, 113)
HSLhsl(327, 64%, 42%)
HSVhsv(327, 78%, 69%)
CMYKcmyk(0%, 77.7%, 35.4%, 31.4%)
CIE-LABlab(40.83, 59.15, -9.21)
CIE-LCHlch(40.83, 59.86, 351.15°)
OKLaboklab(51.41% 0.1815 -0.0237)
OKLCHoklch(51.41% 0.183 352.6)
XYZxyz(21.3867, 11.7599, 16.7632)
Luminance0.1176 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2771 #27AF65
analogous
#A927AF #AF2771 #AF272D
triadic
#AF2771 #71AF27 #2771AF
tetradic
#AF2771 #AFA927 #27AF65 #272DAF
square
#AF2771 #AFA927 #27AF65 #272DAF
split-complementary
#AF2771 #2DAF27 #27AFA9
monochromatic
#4B1130 #7D1C51 #AF2771 #D43F90 #DF71AD

Accessibility & contrast

On white

6.27
#AF2771 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#AF2771 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2771
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2771#FFFFFF#000000##FFFFFF
##AF27711.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#415173
Deuteranopia (green-blind)
#68696E
Tritanopia (blue-blind)
#BD1949
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af2771;
/* rgb */ color: rgb(175, 39, 113);
/* oklch */ color: oklch(51.4% 0.183 352.6);
Tailwind
colors: {
  custom: {
    50: '#cc6f99',
    500: '#af2771',
    950: '#000000',
  },
}
SCSS
$custom: #af2771;
$custom-light: #cc6f99;
$custom-dark: #000000;
JSON
{
  "hex": "#af2771",
  "rgb": {
    "r": 175,
    "g": 39,
    "b": 113
  },
  "hsl": {
    "h": 327.353,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51414,
    "c": 0.18305,
    "h": 352.6
  },
  "luminance": 0.11757
}

Semantic roles & 50–950 ramp

primary
#AF2771
secondary
#6BC695
accent
#E78D41
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080E
muted
#837B7E

Preview Lab

Preview with #AF2771

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

Preview Lab → · Contrast checker → · Palette generator →

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