#AF298B#AF298B

#AF298B is a mid, vivid pink. Relative luminance 0.126; OKLCH L 52.7% C 0.195 H 341.3°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#AF298B
RGBrgb(175, 41, 139)
HSLhsl(316, 62%, 42%)
HSVhsv(316, 77%, 69%)
CMYKcmyk(0%, 76.6%, 20.6%, 31.4%)
CIE-LABlab(42.10, 61.74, -23.31)
CIE-LCHlch(42.10, 65.99, 339.32°)
OKLaboklab(52.68% 0.1851 -0.0628)
OKLCHoklch(52.68% 0.195 341.3)
XYZxyz(23.1331, 12.5663, 25.6283)
Luminance0.1256 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF298B #29AF4D
analogous
#9029AF #AF298B #AF2948
triadic
#AF298B #8BAF29 #298BAF
tetradic
#AF298B #AF9029 #29AF4D #2948AF
square
#AF298B #AF9029 #29AF4D #2948AF
split-complementary
#AF298B #48AF29 #29AF90
monochromatic
#4C123C #7D1D64 #AF298B #D342AC #DE74C2

Accessibility & contrast

On white

5.98
#AF298B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF298B
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF298B#FFFFFF#000000##FFFFFF
##AF298B1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35568E
Deuteranopia (green-blind)
#606B88
Tritanopia (blue-blind)
#BA2C57
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af298b;
/* rgb */ color: rgb(175, 41, 139);
/* oklch */ color: oklch(52.7% 0.195 341.3);
Tailwind
colors: {
  custom: {
    50: '#cb71ad',
    500: '#af298b',
    950: '#000000',
  },
}
SCSS
$custom: #af298b;
$custom-light: #cb71ad;
$custom-dark: #000000;
JSON
{
  "hex": "#af298b",
  "rgb": {
    "r": 175,
    "g": 41,
    "b": 139
  },
  "hsl": {
    "h": 316.119,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.52682,
    "c": 0.19544,
    "h": 341.3
  },
  "luminance": 0.12564
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF298B

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

Preview Lab → · Contrast checker → · Palette generator →

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