#AF297B#AF297B

#AF297B is a mid, vivid pink. Relative luminance 0.121; OKLCH L 52.0% C 0.186 H 348.2°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#AF297B
RGBrgb(175, 41, 123)
HSLhsl(323, 62%, 42%)
HSVhsv(323, 77%, 69%)
CMYKcmyk(0%, 76.6%, 29.7%, 31.4%)
CIE-LABlab(41.43, 59.70, -14.52)
CIE-LCHlch(41.43, 61.44, 346.33°)
OKLaboklab(51.97% 0.1821 -0.0382)
OKLCHoklch(51.97% 0.186 348.2)
XYZxyz(22.0484, 12.1324, 19.9157)
Luminance0.1213 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF297B #29AF5D
analogous
#A029AF #AF297B #AF2938
triadic
#AF297B #7BAF29 #297BAF
tetradic
#AF297B #AFA029 #29AF5D #2938AF
square
#AF297B #AFA029 #29AF5D #2938AF
split-complementary
#AF297B #38AF29 #29AFA0
monochromatic
#4C1235 #7D1D58 #AF297B #D3429B #DE74B5

Accessibility & contrast

On white

6.13
#AF297B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#AF297B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF297B
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF297B#FFFFFF#000000##FFFFFF
##AF297B1.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E537D
Deuteranopia (green-blind)
#656A78
Tritanopia (blue-blind)
#BC224F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af297b;
/* rgb */ color: rgb(175, 41, 123);
/* oklch */ color: oklch(52.0% 0.186 348.2);
Tailwind
colors: {
  custom: {
    50: '#cb71a1',
    500: '#af297b',
    950: '#000000',
  },
}
SCSS
$custom: #af297b;
$custom-light: #cb71a1;
$custom-dark: #000000;
JSON
{
  "hex": "#af297b",
  "rgb": {
    "r": 175,
    "g": 41,
    "b": 123
  },
  "hsl": {
    "h": 323.284,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.51971,
    "c": 0.18604,
    "h": 348.2
  },
  "luminance": 0.1213
}

Semantic roles & 50–950 ramp

primary
#AF297B
secondary
#6EC690
accent
#E58243
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080F
muted
#837B7E

Preview Lab

Preview with #AF297B

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

Preview Lab → · Contrast checker → · Palette generator →

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