#AF4271#AF4271

#AF4271 is a mid, vivid pink. Relative luminance 0.142; OKLCH L 54.1% C 0.150 H 356.5°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#AF4271
RGBrgb(175, 66, 113)
HSLhsl(334, 45%, 47%)
HSVhsv(334, 62%, 69%)
CMYKcmyk(0%, 62.3%, 35.4%, 31.4%)
CIE-LABlab(44.53, 48.92, -3.70)
CIE-LCHlch(44.53, 49.06, 355.68°)
OKLaboklab(54.13% 0.1493 -0.0091)
OKLCHoklch(54.13% 0.15 356.5)
XYZxyz(22.6093, 14.2051, 17.1708)
Luminance0.1420 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4271 #42AF80
analogous
#AF42A8 #AF4271 #AF4942
triadic
#AF4271 #71AF42 #4271AF
tetradic
#AF4271 #A8AF42 #42AF80 #4942AF
square
#AF4271 #A8AF42 #42AF80 #4942AF
split-complementary
#AF4271 #42AF49 #42A8AF
monochromatic
#562038 #833154 #AF4271 #C66891 #D795B1

Accessibility & contrast

On white

5.47
#AF4271 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#AF4271 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4271
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4271#FFFFFF#000000##FFFFFF
##AF42711.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#545D72
Deuteranopia (green-blind)
#72716E
Tritanopia (blue-blind)
#BC3955
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af4271;
/* rgb */ color: rgb(175, 66, 113);
/* oklch */ color: oklch(54.1% 0.150 356.5);
Tailwind
colors: {
  custom: {
    50: '#cb7c99',
    500: '#af4271',
    950: '#000000',
  },
}
SCSS
$custom: #af4271;
$custom-light: #cb7c99;
$custom-dark: #000000;
JSON
{
  "hex": "#af4271",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 113
  },
  "hsl": {
    "h": 334.128,
    "s": 45.228,
    "l": 47.255
  },
  "oklch": {
    "l": 0.54133,
    "c": 0.14958,
    "h": 356.5
  },
  "luminance": 0.14203
}

Semantic roles & 50–950 ramp

primary
#AF4271
secondary
#8AC2AA
accent
#D59D53
background
#FCF7F9
surface
#F9EEF2
border
#D2C9CC
text
#140A0E
muted
#827C7E

Preview Lab

Preview with #AF4271

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

Preview Lab → · Contrast checker → · Palette generator →

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