#AF2898#AF2898

#AF2898 is a mid, highly saturated pink. Relative luminance 0.129; OKLCH L 53.3% C 0.205 H 336.1°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#AF2898
RGBrgb(175, 40, 152)
HSLhsl(310, 63%, 42%)
HSVhsv(310, 77%, 69%)
CMYKcmyk(0%, 77.1%, 13.1%, 31.4%)
CIE-LABlab(42.61, 63.85, -30.40)
CIE-LCHlch(42.61, 70.72, 334.54°)
OKLaboklab(53.25% 0.1875 -0.0829)
OKLCHoklch(53.25% 0.205 336.1)
XYZxyz(24.1059, 12.9008, 30.9202)
Luminance0.1290 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2898 #28AF3F
analogous
#8328AF #AF2898 #AF2855
triadic
#AF2898 #98AF28 #2898AF
tetradic
#AF2898 #AF8328 #28AF3F #2855AF
square
#AF2898 #AF8328 #28AF3F #2855AF
split-complementary
#AF2898 #55AF28 #28AF83
monochromatic
#4B1141 #7D1D6D #AF2898 #D441BA #DF73CC

Accessibility & contrast

On white

5.87
#AF2898 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#AF2898 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2898
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2898#FFFFFF#000000##FFFFFF
##AF28981.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A589B
Deuteranopia (green-blind)
#5B6C95
Tritanopia (blue-blind)
#B8325E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af2898;
/* rgb */ color: rgb(175, 40, 152);
/* oklch */ color: oklch(53.3% 0.205 336.1);
Tailwind
colors: {
  custom: {
    50: '#cb71b6',
    500: '#af2898',
    950: '#000000',
  },
}
SCSS
$custom: #af2898;
$custom-light: #cb71b6;
$custom-dark: #000000;
JSON
{
  "hex": "#af2898",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 152
  },
  "hsl": {
    "h": 310.222,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53251,
    "c": 0.20501,
    "h": 336.1
  },
  "luminance": 0.12899
}

Semantic roles & 50–950 ramp

primary
#AF2898
secondary
#6DC67C
accent
#E65E42
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2898

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

Preview Lab → · Contrast checker → · Palette generator →

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