#AF2271#AF2271

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

Color values

HEX#AF2271
RGBrgb(175, 34, 113)
HSLhsl(326, 67%, 41%)
HSVhsv(326, 81%, 69%)
CMYKcmyk(0%, 80.6%, 35.4%, 31.4%)
CIE-LABlab(40.33, 60.57, -9.96)
CIE-LCHlch(40.33, 61.38, 350.66°)
OKLaboklab(51.05% 0.186 -0.0257)
OKLCHoklch(51.05% 0.188 352.1)
XYZxyz(21.2332, 11.4529, 16.7121)
Luminance0.1145 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2271 #22AF60
analogous
#A622AF #AF2271 #AF222A
triadic
#AF2271 #71AF22 #2271AF
tetradic
#AF2271 #AFA622 #22AF60 #222AAF
square
#AF2271 #AFA622 #22AF60 #222AAF
split-complementary
#AF2271 #2AAF22 #22AFA6
monochromatic
#490E2F #7C1850 #AF2271 #D83691 #E269AD

Accessibility & contrast

On white

6.38
#AF2271 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2271
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2271#FFFFFF#000000##FFFFFF
##AF22711.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E4F73
Deuteranopia (green-blind)
#66686E
Tritanopia (blue-blind)
#BD1147
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #af2271;
/* rgb */ color: rgb(175, 34, 113);
/* oklch */ color: oklch(51.0% 0.188 352.1);
Tailwind
colors: {
  custom: {
    50: '#cc6e99',
    500: '#af2271',
    950: '#000000',
  },
}
SCSS
$custom: #af2271;
$custom-light: #cc6e99;
$custom-dark: #000000;
JSON
{
  "hex": "#af2271",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 326.383,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.5105,
    "c": 0.18779,
    "h": 352.1
  },
  "luminance": 0.1145
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF2271

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

Preview Lab → · Contrast checker → · Palette generator →

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