#AF296B#AF296B

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

Color values

HEX#AF296B
RGBrgb(175, 41, 107)
HSLhsl(330, 62%, 42%)
HSVhsv(330, 77%, 69%)
CMYKcmyk(0%, 76.6%, 38.9%, 31.4%)
CIE-LABlab(40.84, 57.89, -5.45)
CIE-LCHlch(40.84, 58.14, 354.63°)
OKLaboklab(51.35% 0.1779 -0.0136)
OKLCHoklch(51.35% 0.178 355.6)
XYZxyz(21.1274, 11.7640, 15.0652)
Luminance0.1176 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF296B #29AF6D
analogous
#AF29AE #AF296B #AF2A29
triadic
#AF296B #6BAF29 #296BAF
tetradic
#AF296B #AEAF29 #29AF6D #2A29AF
square
#AF296B #AEAF29 #29AF6D #2A29AF
split-complementary
#AF296B #29AF2A #29AEAF
monochromatic
#4C122E #7D1D4D #AF296B #D3428A #DE74A8

Accessibility & contrast

On white

6.26
#AF296B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF296B
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF296B#FFFFFF#000000##FFFFFF
##AF296B1.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#44506D
Deuteranopia (green-blind)
#6A6968
Tritanopia (blue-blind)
#BD1746
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af296b;
/* rgb */ color: rgb(175, 41, 107);
/* oklch */ color: oklch(51.3% 0.178 355.6);
Tailwind
colors: {
  custom: {
    50: '#cc7095',
    500: '#af296b',
    950: '#000000',
  },
}
SCSS
$custom: #af296b;
$custom-light: #cc7095;
$custom-dark: #000000;
JSON
{
  "hex": "#af296b",
  "rgb": {
    "r": 175,
    "g": 41,
    "b": 107
  },
  "hsl": {
    "h": 330.448,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.5135,
    "c": 0.17837,
    "h": 355.6
  },
  "luminance": 0.11761
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF296B

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

Preview Lab → · Contrast checker → · Palette generator →

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