#AF297C#AF297C

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

Color values

HEX#AF297C
RGBrgb(175, 41, 124)
HSLhsl(323, 62%, 42%)
HSVhsv(323, 77%, 69%)
CMYKcmyk(0%, 76.6%, 29.1%, 31.4%)
CIE-LABlab(41.47, 59.82, -15.08)
CIE-LCHlch(41.47, 61.69, 345.85°)
OKLaboklab(52.01% 0.1823 -0.0397)
OKLCHoklch(52.01% 0.187 347.7)
XYZxyz(22.1113, 12.1576, 20.2471)
Luminance0.1216 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF297C #29AF5C
analogous
#9F29AF #AF297C #AF2939
triadic
#AF297C #7CAF29 #297CAF
tetradic
#AF297C #AF9F29 #29AF5C #2939AF
square
#AF297C #AF9F29 #29AF5C #2939AF
split-complementary
#AF297C #39AF29 #29AF9F
monochromatic
#4C1236 #7D1D59 #AF297C #D3429C #DE74B6

Accessibility & contrast

On white

6.12
#AF297C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#AF297C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF297C
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF297C#FFFFFF#000000##FFFFFF
##AF297C1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D537E
Deuteranopia (green-blind)
#656A79
Tritanopia (blue-blind)
#BC234F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af297c;
/* rgb */ color: rgb(175, 41, 124);
/* oklch */ color: oklch(52.0% 0.187 347.7);
Tailwind
colors: {
  custom: {
    50: '#cb71a2',
    500: '#af297c',
    950: '#000000',
  },
}
SCSS
$custom: #af297c;
$custom-light: #cb71a2;
$custom-dark: #000000;
JSON
{
  "hex": "#af297c",
  "rgb": {
    "r": 175,
    "g": 41,
    "b": 124
  },
  "hsl": {
    "h": 322.836,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.52013,
    "c": 0.18659,
    "h": 347.7
  },
  "luminance": 0.12155
}

Semantic roles & 50–950 ramp

primary
#AF297C
secondary
#6EC68F
accent
#E58143
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080F
muted
#837B7E

Preview Lab

Preview with #AF297C

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

Preview Lab → · Contrast checker → · Palette generator →

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