#AF297D#AF297D

#AF297D is a mid, vivid pink. Relative luminance 0.122; OKLCH L 52.1% C 0.187 H 347.3°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#AF297D
RGBrgb(175, 41, 125)
HSLhsl(322, 62%, 42%)
HSVhsv(322, 77%, 69%)
CMYKcmyk(0%, 76.6%, 28.6%, 31.4%)
CIE-LABlab(41.51, 59.94, -15.63)
CIE-LCHlch(41.51, 61.94, 345.38°)
OKLaboklab(52.05% 0.1825 -0.0413)
OKLCHoklch(52.05% 0.187 347.3)
XYZxyz(22.1749, 12.1830, 20.5818)
Luminance0.1218 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF297D #29AF5B
analogous
#9E29AF #AF297D #AF293A
triadic
#AF297D #7DAF29 #297DAF
tetradic
#AF297D #AF9E29 #29AF5B #293AAF
square
#AF297D #AF9E29 #29AF5B #293AAF
split-complementary
#AF297D #3AAF29 #29AF9E
monochromatic
#4C1236 #7D1D5A #AF297D #D3429D #DE74B7

Accessibility & contrast

On white

6.11
#AF297D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#AF297D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF297D
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF297D#FFFFFF#000000##FFFFFF
##AF297D1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D537F
Deuteranopia (green-blind)
#656A7A
Tritanopia (blue-blind)
#BB2450
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af297d;
/* rgb */ color: rgb(175, 41, 125);
/* oklch */ color: oklch(52.1% 0.187 347.3);
Tailwind
colors: {
  custom: {
    50: '#cb71a2',
    500: '#af297d',
    950: '#000000',
  },
}
SCSS
$custom: #af297d;
$custom-light: #cb71a2;
$custom-dark: #000000;
JSON
{
  "hex": "#af297d",
  "rgb": {
    "r": 175,
    "g": 41,
    "b": 125
  },
  "hsl": {
    "h": 322.388,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.52055,
    "c": 0.18714,
    "h": 347.3
  },
  "luminance": 0.12181
}

Semantic roles & 50–950 ramp

primary
#AF297D
secondary
#6EC68F
accent
#E57F43
background
#FDF7FA
surface
#FAEDF3
border
#D3C8CD
text
#14080F
muted
#837B7F

Preview Lab

Preview with #AF297D

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

Preview Lab → · Contrast checker → · Palette generator →

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