#AF296C#AF296C

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

Color values

HEX#AF296C
RGBrgb(175, 41, 108)
HSLhsl(330, 62%, 42%)
HSVhsv(330, 77%, 69%)
CMYKcmyk(0%, 76.6%, 38.3%, 31.4%)
CIE-LABlab(40.87, 57.99, -6.02)
CIE-LCHlch(40.87, 58.30, 354.07°)
OKLaboklab(51.39% 0.1782 -0.0151)
OKLCHoklch(51.39% 0.179 355.1)
XYZxyz(21.1803, 11.7852, 15.3439)
Luminance0.1178 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF296C #29AF6C
analogous
#AF29AF #AF296C #AF2929
triadic
#AF296C #6CAF29 #296CAF
tetradic
#AF296C #AFAF29 #29AF6C #2929AF
square
#AF296C #AFAF29 #29AF6C #2929AF
split-complementary
#AF296C #29AF29 #29AFAF
monochromatic
#4C122F #7D1D4D #AF296C #D3428B #DE74A9

Accessibility & contrast

On white

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

On black

3.36
#AF296C on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##AF296C#FFFFFF#000000##FFFFFF
##AF296C1.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#44516E
Deuteranopia (green-blind)
#696969
Tritanopia (blue-blind)
#BD1847
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #af296c;
/* rgb */ color: rgb(175, 41, 108);
/* oklch */ color: oklch(51.4% 0.179 355.1);
Tailwind
colors: {
  custom: {
    50: '#cc7096',
    500: '#af296c',
    950: '#000000',
  },
}
SCSS
$custom: #af296c;
$custom-light: #cc7096;
$custom-dark: #000000;
JSON
{
  "hex": "#af296c",
  "rgb": {
    "r": 175,
    "g": 41,
    "b": 108
  },
  "hsl": {
    "h": 330,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.51386,
    "c": 0.17879,
    "h": 355.1
  },
  "luminance": 0.11783
}

Semantic roles & 50–950 ramp

primary
#AF296C
secondary
#6EC69A
accent
#E59443
background
#FDF7F9
surface
#FAEDF1
border
#D3C8CB
text
#14080D
muted
#837B7E

Preview Lab

Preview with #AF296C

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

Preview Lab → · Contrast checker → · Palette generator →

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