#AF296A#AF296A

#AF296A is a mid, vivid pink. Relative luminance 0.117; OKLCH L 51.3% C 0.178 H 356.1°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#AF296A
RGBrgb(175, 41, 106)
HSLhsl(331, 62%, 42%)
HSVhsv(331, 77%, 69%)
CMYKcmyk(0%, 76.6%, 39.4%, 31.4%)
CIE-LABlab(40.80, 57.78, -4.87)
CIE-LCHlch(40.80, 57.99, 355.18°)
OKLaboklab(51.31% 0.1775 -0.0121)
OKLCHoklch(51.31% 0.178 356.1)
XYZxyz(21.0751, 11.7431, 14.7897)
Luminance0.1174 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF296A #29AF6E
analogous
#AF29AD #AF296A #AF2B29
triadic
#AF296A #6AAF29 #296AAF
tetradic
#AF296A #ADAF29 #29AF6E #2B29AF
square
#AF296A #ADAF29 #29AF6E #2B29AF
split-complementary
#AF296A #29AF2B #29ADAF
monochromatic
#4C122E #7D1D4C #AF296A #D34288 #DE74A8

Accessibility & contrast

On white

6.27
#AF296A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#AF296A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF296A
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF296A#FFFFFF#000000##FFFFFF
##AF296A1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#45506C
Deuteranopia (green-blind)
#6A6967
Tritanopia (blue-blind)
#BD1746
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af296a;
/* rgb */ color: rgb(175, 41, 106);
/* oklch */ color: oklch(51.3% 0.178 356.1);
Tailwind
colors: {
  custom: {
    50: '#cc7094',
    500: '#af296a',
    950: '#000000',
  },
}
SCSS
$custom: #af296a;
$custom-light: #cc7094;
$custom-dark: #000000;
JSON
{
  "hex": "#af296a",
  "rgb": {
    "r": 175,
    "g": 41,
    "b": 106
  },
  "hsl": {
    "h": 330.896,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.51314,
    "c": 0.17795,
    "h": 356.1
  },
  "luminance": 0.1174
}

Semantic roles & 50–950 ramp

primary
#AF296A
secondary
#6EC69B
accent
#E59643
background
#FDF7F9
surface
#FAEDF1
border
#D3C8CB
text
#14080D
muted
#837B7E

Preview Lab

Preview with #AF296A

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

Preview Lab → · Contrast checker → · Palette generator →

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