#AF4277#AF4277

#AF4277 is a mid, vivid pink. Relative luminance 0.143; OKLCH L 54.3% C 0.152 H 353.2°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#AF4277
RGBrgb(175, 66, 119)
HSLhsl(331, 45%, 47%)
HSVhsv(331, 62%, 69%)
CMYKcmyk(0%, 62.3%, 32%, 31.4%)
CIE-LABlab(44.72, 49.65, -7.08)
CIE-LCHlch(44.72, 50.15, 351.88°)
OKLaboklab(54.35% 0.1512 -0.0181)
OKLCHoklch(54.35% 0.152 353.2)
XYZxyz(22.9583, 14.3447, 19.0089)
Luminance0.1434 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4277 #42AF7A
analogous
#AF42AD #AF4277 #AF4442
triadic
#AF4277 #77AF42 #4277AF
tetradic
#AF4277 #ADAF42 #42AF7A #4442AF
square
#AF4277 #ADAF42 #42AF7A #4442AF
split-complementary
#AF4277 #42AF44 #42ADAF
monochromatic
#56203B #833159 #AF4277 #C66896 #D795B5

Accessibility & contrast

On white

5.43
#AF4277 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#AF4277 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4277
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4277#FFFFFF#000000##FFFFFF
##AF42771.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#525D79
Deuteranopia (green-blind)
#707174
Tritanopia (blue-blind)
#BC3B57
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af4277;
/* rgb */ color: rgb(175, 66, 119);
/* oklch */ color: oklch(54.3% 0.152 353.2);
Tailwind
colors: {
  custom: {
    50: '#ca7c9e',
    500: '#af4277',
    950: '#000000',
  },
}
SCSS
$custom: #af4277;
$custom-light: #ca7c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#af4277",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 119
  },
  "hsl": {
    "h": 330.826,
    "s": 45.228,
    "l": 47.255
  },
  "oklch": {
    "l": 0.54345,
    "c": 0.15229,
    "h": 353.2
  },
  "luminance": 0.14342
}

Semantic roles & 50–950 ramp

primary
#AF4277
secondary
#8AC2A7
accent
#D59653
background
#FCF7F9
surface
#F9EEF2
border
#D2C9CC
text
#140A0E
muted
#827C7E

Preview Lab

Preview with #AF4277

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

Preview Lab → · Contrast checker → · Palette generator →

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