#AF298A#AF298A

#AF298A is a mid, vivid pink. Relative luminance 0.125; OKLCH L 52.6% C 0.195 H 341.7°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#AF298A
RGBrgb(175, 41, 138)
HSLhsl(317, 62%, 42%)
HSVhsv(317, 77%, 69%)
CMYKcmyk(0%, 76.6%, 21.1%, 31.4%)
CIE-LABlab(42.06, 61.60, -22.77)
CIE-LCHlch(42.06, 65.68, 339.72°)
OKLaboklab(52.64% 0.1849 -0.0612)
OKLCHoklch(52.64% 0.195 341.7)
XYZxyz(23.0604, 12.5372, 25.2453)
Luminance0.1253 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF298A #29AF4E
analogous
#9129AF #AF298A #AF2947
triadic
#AF298A #8AAF29 #298AAF
tetradic
#AF298A #AF9129 #29AF4E #2947AF
square
#AF298A #AF9129 #29AF4E #2947AF
split-complementary
#AF298A #47AF29 #29AF91
monochromatic
#4C123C #7D1D63 #AF298A #D342AB #DE74C1

Accessibility & contrast

On white

5.99
#AF298A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#AF298A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF298A
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF298A#FFFFFF#000000##FFFFFF
##AF298A1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36558D
Deuteranopia (green-blind)
#616B87
Tritanopia (blue-blind)
#BA2B57
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af298a;
/* rgb */ color: rgb(175, 41, 138);
/* oklch */ color: oklch(52.6% 0.195 341.7);
Tailwind
colors: {
  custom: {
    50: '#cb71ac',
    500: '#af298a',
    950: '#000000',
  },
}
SCSS
$custom: #af298a;
$custom-light: #cb71ac;
$custom-dark: #000000;
JSON
{
  "hex": "#af298a",
  "rgb": {
    "r": 175,
    "g": 41,
    "b": 138
  },
  "hsl": {
    "h": 316.567,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.52635,
    "c": 0.19481,
    "h": 341.7
  },
  "luminance": 0.12535
}

Semantic roles & 50–950 ramp

primary
#AF298A
secondary
#6EC686
accent
#E57043
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #AF298A

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

Preview Lab → · Contrast checker → · Palette generator →

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