#F271AB#F271AB

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

Color values

HEX#F271AB
RGBrgb(242, 113, 171)
HSLhsl(333, 83%, 70%)
HSVhsv(333, 53%, 95%)
CMYKcmyk(0%, 53.3%, 29.3%, 5.1%)
CIE-LABlab(64.67, 55.58, -6.95)
CIE-LCHlch(64.67, 56.01, 352.88°)
OKLaboklab(71.76% 0.1686 -0.0176)
OKLCHoklch(71.76% 0.169 354)
XYZxyz(49.8758, 33.6324, 42.3851)
Luminance0.3363 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F271AB #71F2B8
analogous
#F271EC #F271AB #F27871
triadic
#F271AB #ABF271 #71ABF2
tetradic
#F271AB #ECF271 #71F2B8 #7871F2
square
#F271AB #ECF271 #71F2B8 #7871F2
split-complementary
#F271AB #71F278 #71ECF2
monochromatic
#D5146B #ED398A #F271AB #F7A9CC #FCE1ED

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F271AB#FFFFFF#000000##000000
##F271AB1.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)
#838EAD
Deuteranopia (green-blind)
#A5A6A8
Tritanopia (blue-blind)
#FF6A87
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #f271ab;
/* rgb */ color: rgb(242, 113, 171);
/* oklch */ color: oklch(71.8% 0.169 354.0);
Tailwind
colors: {
  custom: {
    50: '#fa9ec4',
    500: '#f271ab',
    950: '#000000',
  },
}
SCSS
$custom: #f271ab;
$custom-light: #fa9ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#f271ab",
  "rgb": {
    "r": 242,
    "g": 113,
    "b": 171
  },
  "hsl": {
    "h": 333.023,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.71755,
    "c": 0.16947,
    "h": 354
  },
  "luminance": 0.33628
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F271AB

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

Preview Lab → · Contrast checker → · Palette generator →

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