#AF297F#AF297F

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

Color values

HEX#AF297F
RGBrgb(175, 41, 127)
HSLhsl(321, 62%, 42%)
HSVhsv(321, 77%, 69%)
CMYKcmyk(0%, 76.6%, 27.4%, 31.4%)
CIE-LABlab(41.59, 60.18, -16.74)
CIE-LCHlch(41.59, 62.47, 344.45°)
OKLaboklab(52.14% 0.183 -0.0443)
OKLCHoklch(52.14% 0.188 346.4)
XYZxyz(22.3039, 12.2346, 21.2615)
Luminance0.1223 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF297F #29AF59
analogous
#9C29AF #AF297F #AF293C
triadic
#AF297F #7FAF29 #297FAF
tetradic
#AF297F #AF9C29 #29AF59 #293CAF
square
#AF297F #AF9C29 #29AF59 #293CAF
split-complementary
#AF297F #3CAF29 #29AF9C
monochromatic
#4C1237 #7D1D5B #AF297F #D3429F #DE74B8

Accessibility & contrast

On white

6.09
#AF297F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#AF297F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF297F
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF297F#FFFFFF#000000##FFFFFF
##AF297F1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5481
Deuteranopia (green-blind)
#646A7C
Tritanopia (blue-blind)
#BB2551
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af297f;
/* rgb */ color: rgb(175, 41, 127);
/* oklch */ color: oklch(52.1% 0.188 346.4);
Tailwind
colors: {
  custom: {
    50: '#cb71a4',
    500: '#af297f',
    950: '#000000',
  },
}
SCSS
$custom: #af297f;
$custom-light: #cb71a4;
$custom-dark: #000000;
JSON
{
  "hex": "#af297f",
  "rgb": {
    "r": 175,
    "g": 41,
    "b": 127
  },
  "hsl": {
    "h": 321.493,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.5214,
    "c": 0.18825,
    "h": 346.4
  },
  "luminance": 0.12232
}

Semantic roles & 50–950 ramp

primary
#AF297F
secondary
#6EC68D
accent
#E57D43
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#14090F
muted
#837B7F

Preview Lab

Preview with #AF297F

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

Preview Lab → · Contrast checker → · Palette generator →

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