#AF296F#AF296F

#AF296F is a mid, vivid pink. Relative luminance 0.118; OKLCH L 51.5% C 0.180 H 353.7°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#AF296F
RGBrgb(175, 41, 111)
HSLhsl(329, 62%, 42%)
HSVhsv(329, 77%, 69%)
CMYKcmyk(0%, 76.6%, 36.6%, 31.4%)
CIE-LABlab(40.98, 58.32, -7.74)
CIE-LCHlch(40.98, 58.83, 352.44°)
OKLaboklab(51.5% 0.179 -0.0197)
OKLCHoklch(51.5% 0.18 353.7)
XYZxyz(21.3427, 11.8502, 16.1992)
Luminance0.1185 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF296F #29AF69
analogous
#AC29AF #AF296F #AF292C
triadic
#AF296F #6FAF29 #296FAF
tetradic
#AF296F #AFAC29 #29AF69 #292CAF
square
#AF296F #AFAC29 #29AF69 #292CAF
split-complementary
#AF296F #2CAF29 #29AFAC
monochromatic
#4C1230 #7D1D50 #AF296F #D3428E #DE74AC

Accessibility & contrast

On white

6.23
#AF296F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#AF296F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF296F
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF296F#FFFFFF#000000##FFFFFF
##AF296F1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#435171
Deuteranopia (green-blind)
#69696C
Tritanopia (blue-blind)
#BD1A48
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #af296f;
/* rgb */ color: rgb(175, 41, 111);
/* oklch */ color: oklch(51.5% 0.180 353.7);
Tailwind
colors: {
  custom: {
    50: '#cc7098',
    500: '#af296f',
    950: '#000000',
  },
}
SCSS
$custom: #af296f;
$custom-light: #cc7098;
$custom-dark: #000000;
JSON
{
  "hex": "#af296f",
  "rgb": {
    "r": 175,
    "g": 41,
    "b": 111
  },
  "hsl": {
    "h": 328.657,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.51496,
    "c": 0.1801,
    "h": 353.7
  },
  "luminance": 0.11848
}

Semantic roles & 50–950 ramp

primary
#AF296F
secondary
#6EC698
accent
#E59043
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080D
muted
#837B7E

Preview Lab

Preview with #AF296F

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

Preview Lab → · Contrast checker → · Palette generator →

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