#AF3271#AF3271

#AF3271 is a mid, vivid pink. Relative luminance 0.126; OKLCH L 52.4% C 0.171 H 353.8°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#AF3271
RGBrgb(175, 50, 113)
HSLhsl(330, 56%, 44%)
HSVhsv(330, 71%, 69%)
CMYKcmyk(0%, 71.4%, 35.4%, 31.4%)
CIE-LABlab(42.14, 55.47, -7.25)
CIE-LCHlch(42.14, 55.94, 352.56°)
OKLaboklab(52.37% 0.1699 -0.0185)
OKLCHoklch(52.37% 0.171 353.8)
XYZxyz(21.8017, 12.5900, 16.9016)
Luminance0.1259 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3271 #32AF70
analogous
#AF32AF #AF3271 #AF3232
triadic
#AF3271 #71AF32 #3271AF
tetradic
#AF3271 #AFAF32 #32AF70 #3232AF
square
#AF3271 #AFAF32 #32AF70 #3232AF
split-complementary
#AF3271 #32AF32 #32AFAF
monochromatic
#501734 #7F2452 #AF3271 #CD5190 #DB81AE

Accessibility & contrast

On white

5.97
#AF3271 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#AF3271 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3271
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3271#FFFFFF#000000##FFFFFF
##AF32711.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#485573
Deuteranopia (green-blind)
#6B6C6E
Tritanopia (blue-blind)
#BD274D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af3271;
/* rgb */ color: rgb(175, 50, 113);
/* oklch */ color: oklch(52.4% 0.171 353.8);
Tailwind
colors: {
  custom: {
    50: '#cb7499',
    500: '#af3271',
    950: '#000000',
  },
}
SCSS
$custom: #af3271;
$custom-light: #cb7499;
$custom-dark: #000000;
JSON
{
  "hex": "#af3271",
  "rgb": {
    "r": 175,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 329.76,
    "s": 55.556,
    "l": 44.118
  },
  "oklch": {
    "l": 0.52371,
    "c": 0.17089,
    "h": 353.8
  },
  "luminance": 0.12587
}

Semantic roles & 50–950 ramp

primary
#AF3271
secondary
#79C49E
accent
#DF9349
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090E
muted
#837B7E

Preview Lab

Preview with #AF3271

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

Preview Lab → · Contrast checker → · Palette generator →

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