#AF298F#AF298F

#AF298F is a mid, vivid pink. Relative luminance 0.127; OKLCH L 52.9% C 0.198 H 339.6°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#AF298F
RGBrgb(175, 41, 143)
HSLhsl(314, 62%, 42%)
HSVhsv(314, 77%, 69%)
CMYKcmyk(0%, 76.6%, 18.3%, 31.4%)
CIE-LABlab(42.29, 62.28, -25.46)
CIE-LCHlch(42.29, 67.29, 337.76°)
OKLaboklab(52.87% 0.1856 -0.0689)
OKLCHoklch(52.87% 0.198 339.6)
XYZxyz(23.4307, 12.6853, 27.1958)
Luminance0.1268 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF298F #29AF49
analogous
#8C29AF #AF298F #AF294C
triadic
#AF298F #8FAF29 #298FAF
tetradic
#AF298F #AF8C29 #29AF49 #294CAF
square
#AF298F #AF8C29 #29AF49 #294CAF
split-complementary
#AF298F #4CAF29 #29AF8C
monochromatic
#4C123E #7D1D66 #AF298F #D342B0 #DE74C5

Accessibility & contrast

On white

5.94
#AF298F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#AF298F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF298F
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF298F#FFFFFF#000000##FFFFFF
##AF298F1.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325692
Deuteranopia (green-blind)
#5F6B8C
Tritanopia (blue-blind)
#B92E59
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af298f;
/* rgb */ color: rgb(175, 41, 143);
/* oklch */ color: oklch(52.9% 0.198 339.6);
Tailwind
colors: {
  custom: {
    50: '#cb71b0',
    500: '#af298f',
    950: '#000000',
  },
}
SCSS
$custom: #af298f;
$custom-light: #cb71b0;
$custom-dark: #000000;
JSON
{
  "hex": "#af298f",
  "rgb": {
    "r": 175,
    "g": 41,
    "b": 143
  },
  "hsl": {
    "h": 314.328,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.52874,
    "c": 0.198,
    "h": 339.6
  },
  "luminance": 0.12683
}

Semantic roles & 50–950 ramp

primary
#AF298F
secondary
#6EC683
accent
#E56943
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #AF298F

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

Preview Lab → · Contrast checker → · Palette generator →

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