#AF2B71#AF2B71

#AF2B71 is a mid, vivid pink. Relative luminance 0.120; OKLCH L 51.7% C 0.179 H 353.0°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#AF2B71
RGBrgb(175, 43, 113)
HSLhsl(328, 61%, 43%)
HSVhsv(328, 75%, 69%)
CMYKcmyk(0%, 75.4%, 35.4%, 31.4%)
CIE-LABlab(41.27, 57.90, -8.54)
CIE-LCHlch(41.27, 58.52, 351.61°)
OKLaboklab(51.74% 0.1776 -0.0219)
OKLCHoklch(51.74% 0.179 353)
XYZxyz(21.5250, 12.0366, 16.8093)
Luminance0.1203 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2B71 #2BAF69
analogous
#AB2BAF #AF2B71 #AF2B2F
triadic
#AF2B71 #71AF2B #2B71AF
tetradic
#AF2B71 #AFAB2B #2BAF69 #2B2FAF
square
#AF2B71 #AFAB2B #2BAF69 #2B2FAF
split-complementary
#AF2B71 #2FAF2B #2BAFAB
monochromatic
#4D1332 #7E1F51 #AF2B71 #D14690 #DE77AD

Accessibility & contrast

On white

6.16
#AF2B71 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#AF2B71 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2B71
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2B71#FFFFFF#000000##FFFFFF
##AF2B711.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#435273
Deuteranopia (green-blind)
#696A6E
Tritanopia (blue-blind)
#BD1E4A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af2b71;
/* rgb */ color: rgb(175, 43, 113);
/* oklch */ color: oklch(51.7% 0.179 353.0);
Tailwind
colors: {
  custom: {
    50: '#cc7199',
    500: '#af2b71',
    950: '#000000',
  },
}
SCSS
$custom: #af2b71;
$custom-light: #cc7199;
$custom-dark: #000000;
JSON
{
  "hex": "#af2b71",
  "rgb": {
    "r": 175,
    "g": 43,
    "b": 113
  },
  "hsl": {
    "h": 328.182,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.51737,
    "c": 0.1789,
    "h": 353
  },
  "luminance": 0.12034
}

Semantic roles & 50–950 ramp

primary
#AF2B71
secondary
#70C598
accent
#E48F44
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080E
muted
#837B7E

Preview Lab

Preview with #AF2B71

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

Preview Lab → · Contrast checker → · Palette generator →

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