#AF2998#AF2998

#AF2998 is a mid, highly saturated pink. Relative luminance 0.130; OKLCH L 53.3% C 0.204 H 336.2°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#AF2998
RGBrgb(175, 41, 152)
HSLhsl(310, 62%, 42%)
HSVhsv(310, 77%, 69%)
CMYKcmyk(0%, 76.6%, 13.1%, 31.4%)
CIE-LABlab(42.72, 63.55, -30.24)
CIE-LCHlch(42.72, 70.38, 334.55°)
OKLaboklab(53.33% 0.1866 -0.0825)
OKLCHoklch(53.33% 0.204 336.2)
XYZxyz(24.1400, 12.9691, 30.9316)
Luminance0.1297 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2998 #29AF40
analogous
#8329AF #AF2998 #AF2955
triadic
#AF2998 #98AF29 #2998AF
tetradic
#AF2998 #AF8329 #29AF40 #2955AF
square
#AF2998 #AF8329 #29AF40 #2955AF
split-complementary
#AF2998 #55AF29 #29AF83
monochromatic
#4C1242 #7D1D6D #AF2998 #D342BA #DE74CC

Accessibility & contrast

On white

5.84
#AF2998 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#AF2998 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2998
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2998#FFFFFF#000000##FFFFFF
##AF29981.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af2998;
/* rgb */ color: rgb(175, 41, 152);
/* oklch */ color: oklch(53.3% 0.204 336.2);
Tailwind
colors: {
  custom: {
    50: '#cb72b6',
    500: '#af2998',
    950: '#000000',
  },
}
SCSS
$custom: #af2998;
$custom-light: #cb72b6;
$custom-dark: #000000;
JSON
{
  "hex": "#af2998",
  "rgb": {
    "r": 175,
    "g": 41,
    "b": 152
  },
  "hsl": {
    "h": 310.299,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.53325,
    "c": 0.20402,
    "h": 336.2
  },
  "luminance": 0.12967
}

Semantic roles & 50–950 ramp

primary
#AF2998
secondary
#6EC67D
accent
#E55F43
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2998

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

Preview Lab → · Contrast checker → · Palette generator →

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