#AF4297#AF4297

#AF4297 is a mid, vivid pink. Relative luminance 0.152; OKLCH L 55.7% C 0.172 H 337.3°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#AF4297
RGBrgb(175, 66, 151)
HSLhsl(313, 45%, 47%)
HSVhsv(313, 62%, 69%)
CMYKcmyk(0%, 62.3%, 13.7%, 31.4%)
CIE-LABlab(45.97, 54.16, -24.57)
CIE-LCHlch(45.97, 59.47, 335.60°)
OKLaboklab(55.67% 0.159 -0.0665)
OKLCHoklch(55.67% 0.172 337.3)
XYZxyz(25.2137, 15.2468, 30.8871)
Luminance0.1525 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4297 #42AF5A
analogous
#9142AF #AF4297 #AF4261
triadic
#AF4297 #97AF42 #4297AF
tetradic
#AF4297 #AF9142 #42AF5A #4261AF
square
#AF4297 #AF9142 #42AF5A #4261AF
split-complementary
#AF4297 #61AF42 #42AF91
monochromatic
#56204A #833171 #AF4297 #C668B1 #D795C8

Accessibility & contrast

On white

5.19
#AF4297 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#AF4297 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4297
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4297#FFFFFF#000000##FFFFFF
##AF42971.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#45629A
Deuteranopia (green-blind)
#667394
Tritanopia (blue-blind)
#B84766
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af4297;
/* rgb */ color: rgb(175, 66, 151);
/* oklch */ color: oklch(55.7% 0.172 337.3);
Tailwind
colors: {
  custom: {
    50: '#ca7db6',
    500: '#af4297',
    950: '#000000',
  },
}
SCSS
$custom: #af4297;
$custom-light: #ca7db6;
$custom-dark: #000000;
JSON
{
  "hex": "#af4297",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 151
  },
  "hsl": {
    "h": 313.211,
    "s": 45.228,
    "l": 47.255
  },
  "oklch": {
    "l": 0.55673,
    "c": 0.17232,
    "h": 337.3
  },
  "luminance": 0.15245
}

Semantic roles & 50–950 ramp

primary
#AF4297
secondary
#8AC297
accent
#D57053
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A11
muted
#827C80

Preview Lab

Preview with #AF4297

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

Preview Lab → · Contrast checker → · Palette generator →

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