#AF297E#AF297E

#AF297E is a mid, vivid pink. Relative luminance 0.122; OKLCH L 52.1% C 0.188 H 346.8°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#AF297E
RGBrgb(175, 41, 126)
HSLhsl(322, 62%, 42%)
HSVhsv(322, 77%, 69%)
CMYKcmyk(0%, 76.6%, 28%, 31.4%)
CIE-LABlab(41.55, 60.06, -16.19)
CIE-LCHlch(41.55, 62.20, 344.91°)
OKLaboklab(52.1% 0.1827 -0.0428)
OKLCHoklch(52.1% 0.188 346.8)
XYZxyz(22.2391, 12.2087, 20.9200)
Luminance0.1221 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF297E #29AF5A
analogous
#9D29AF #AF297E #AF293B
triadic
#AF297E #7EAF29 #297EAF
tetradic
#AF297E #AF9D29 #29AF5A #293BAF
square
#AF297E #AF9D29 #29AF5A #293BAF
split-complementary
#AF297E #3BAF29 #29AF9D
monochromatic
#4C1237 #7D1D5A #AF297E #D3429E #DE74B8

Accessibility & contrast

On white

6.10
#AF297E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#AF297E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF297E
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF297E#FFFFFF#000000##FFFFFF
##AF297E1.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5380
Deuteranopia (green-blind)
#656A7B
Tritanopia (blue-blind)
#BB2450
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af297e;
/* rgb */ color: rgb(175, 41, 126);
/* oklch */ color: oklch(52.1% 0.188 346.8);
Tailwind
colors: {
  custom: {
    50: '#cb71a3',
    500: '#af297e',
    950: '#000000',
  },
}
SCSS
$custom: #af297e;
$custom-light: #cb71a3;
$custom-dark: #000000;
JSON
{
  "hex": "#af297e",
  "rgb": {
    "r": 175,
    "g": 41,
    "b": 126
  },
  "hsl": {
    "h": 321.94,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.52097,
    "c": 0.18769,
    "h": 346.8
  },
  "luminance": 0.12206
}

Semantic roles & 50–950 ramp

primary
#AF297E
secondary
#6EC68E
accent
#E57E43
background
#FDF7FA
surface
#FAEDF3
border
#D3C8CD
text
#14090F
muted
#837B7F

Preview Lab

Preview with #AF297E

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

Preview Lab → · Contrast checker → · Palette generator →

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