#F271AC#F271AC

#F271AC is a light, vivid pink. Relative luminance 0.337; OKLCH L 71.8% C 0.170 H 353.6°. Best body text is #000000 at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#F271AC
RGBrgb(242, 113, 172)
HSLhsl(333, 83%, 70%)
HSVhsv(333, 53%, 95%)
CMYKcmyk(0%, 53.3%, 28.9%, 5.1%)
CIE-LABlab(64.70, 55.70, -7.47)
CIE-LCHlch(64.70, 56.20, 352.36°)
OKLaboklab(71.79% 0.1689 -0.019)
OKLCHoklch(71.79% 0.17 353.6)
XYZxyz(49.9715, 33.6707, 42.8890)
Luminance0.3367 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F271AC #71F2B7
analogous
#F271ED #F271AC #F27771
triadic
#F271AC #ACF271 #71ACF2
tetradic
#F271AC #EDF271 #71F2B7 #7771F2
square
#F271AC #EDF271 #71F2B7 #7771F2
split-complementary
#F271AC #71F277 #71EDF2
monochromatic
#D5146C #ED398B #F271AC #F7A9CD #FCE1EE

Accessibility & contrast

On white

2.72
#F271AC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.73
#F271AC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F271AC
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F271AC#FFFFFF#000000##000000
##F271AC1.002.727.737.73
#FFFFFF2.721.0021.0021.00
#0000007.7321.001.001.00
##0000007.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#828EAE
Deuteranopia (green-blind)
#A5A6A9
Tritanopia (blue-blind)
#FF6A87
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #f271ac;
/* rgb */ color: rgb(242, 113, 172);
/* oklch */ color: oklch(71.8% 0.170 353.6);
Tailwind
colors: {
  custom: {
    50: '#fa9ec4',
    500: '#f271ac',
    950: '#000000',
  },
}
SCSS
$custom: #f271ac;
$custom-light: #fa9ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#f271ac",
  "rgb": {
    "r": 242,
    "g": 113,
    "b": 172
  },
  "hsl": {
    "h": 332.558,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.71788,
    "c": 0.16993,
    "h": 353.6
  },
  "luminance": 0.33666
}

Semantic roles & 50–950 ramp

primary
#F271AC
secondary
#CDF2E1
accent
#E07C06
background
#FFFAFC
surface
#FFF3F8
border
#D7CDD1
text
#180F12
muted
#867F81

Preview Lab

Preview with #F271AC

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

Preview Lab → · Contrast checker → · Palette generator →

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