#F172A4#F172A4

#F172A4 is a light, vivid pink. Relative luminance 0.334; OKLCH L 71.5% C 0.164 H 357.3°. Best body text is #000000 at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#F172A4
RGBrgb(241, 114, 164)
HSLhsl(336, 82%, 70%)
HSVhsv(336, 53%, 95%)
CMYKcmyk(0%, 52.7%, 32%, 5.5%)
CIE-LABlab(64.50, 53.93, -3.23)
CIE-LCHlch(64.50, 54.02, 356.58°)
OKLaboklab(71.53% 0.1639 -0.0078)
OKLCHoklch(71.53% 0.164 357.3)
XYZxyz(48.9960, 33.4204, 38.9852)
Luminance0.3342 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F172A4 #72F1BF
analogous
#F172E3 #F172A4 #F18072
triadic
#F172A4 #A4F172 #72A4F1
tetradic
#F172A4 #E3F172 #72F1BF #8072F1
square
#F172A4 #E3F172 #72F1BF #8072F1
split-complementary
#F172A4 #72F180 #72E3F1
monochromatic
#D41560 #EB3A80 #F172A4 #F7AAC8 #FCE1EC

Accessibility & contrast

On white

2.73
#F172A4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.68
#F172A4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F172A4
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F172A4#FFFFFF#000000##000000
##F172A41.002.737.687.68
#FFFFFF2.731.0021.0021.00
#0000007.6821.001.001.00
##0000007.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#858EA6
Deuteranopia (green-blind)
#A6A5A1
Tritanopia (blue-blind)
#FF6985
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #f172a4;
/* rgb */ color: rgb(241, 114, 164);
/* oklch */ color: oklch(71.5% 0.164 357.3);
Tailwind
colors: {
  custom: {
    50: '#f99fbe',
    500: '#f172a4',
    950: '#000000',
  },
}
SCSS
$custom: #f172a4;
$custom-light: #f99fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#f172a4",
  "rgb": {
    "r": 241,
    "g": 114,
    "b": 164
  },
  "hsl": {
    "h": 336.378,
    "s": 81.935,
    "l": 69.608
  },
  "oklch": {
    "l": 0.7153,
    "c": 0.16404,
    "h": 357.3
  },
  "luminance": 0.33416
}

Semantic roles & 50–950 ramp

primary
#F172A4
secondary
#CDF2E3
accent
#DE8A07
background
#FFFAFB
surface
#FFF3F6
border
#D7CDD0
text
#180F12
muted
#867F81

Preview Lab

Preview with #F172A4

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

Preview Lab → · Contrast checker → · Palette generator →

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