#AF297A#AF297A

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

Color values

HEX#AF297A
RGBrgb(175, 41, 122)
HSLhsl(324, 62%, 42%)
HSVhsv(324, 77%, 69%)
CMYKcmyk(0%, 76.6%, 30.3%, 31.4%)
CIE-LABlab(41.39, 59.58, -13.96)
CIE-LCHlch(41.39, 61.19, 346.81°)
OKLaboklab(51.93% 0.1819 -0.0367)
OKLCHoklch(51.93% 0.186 348.6)
XYZxyz(21.9861, 12.1075, 19.5877)
Luminance0.1211 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF297A #29AF5E
analogous
#A129AF #AF297A #AF2937
triadic
#AF297A #7AAF29 #297AAF
tetradic
#AF297A #AFA129 #29AF5E #2937AF
square
#AF297A #AFA129 #29AF5E #2937AF
split-complementary
#AF297A #37AF29 #29AFA1
monochromatic
#4C1235 #7D1D57 #AF297A #D3429A #DE74B4

Accessibility & contrast

On white

6.14
#AF297A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#AF297A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF297A
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF297A#FFFFFF#000000##FFFFFF
##AF297A1.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E537C
Deuteranopia (green-blind)
#666A77
Tritanopia (blue-blind)
#BC224E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af297a;
/* rgb */ color: rgb(175, 41, 122);
/* oklch */ color: oklch(51.9% 0.186 348.6);
Tailwind
colors: {
  custom: {
    50: '#cb71a0',
    500: '#af297a',
    950: '#000000',
  },
}
SCSS
$custom: #af297a;
$custom-light: #cb71a0;
$custom-dark: #000000;
JSON
{
  "hex": "#af297a",
  "rgb": {
    "r": 175,
    "g": 41,
    "b": 122
  },
  "hsl": {
    "h": 323.731,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.51929,
    "c": 0.18551,
    "h": 348.6
  },
  "luminance": 0.12105
}

Semantic roles & 50–950 ramp

primary
#AF297A
secondary
#6EC691
accent
#E58343
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080E
muted
#837B7E

Preview Lab

Preview with #AF297A

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

Preview Lab → · Contrast checker → · Palette generator →

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