#F271BD#F271BD

#F271BD is a light, vivid pink. Relative luminance 0.344; OKLCH L 72.4% C 0.179 H 346.1°. Best body text is #000000 at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#F271BD
RGBrgb(242, 113, 189)
HSLhsl(325, 83%, 70%)
HSVhsv(325, 53%, 95%)
CMYKcmyk(0%, 53.3%, 21.9%, 5.1%)
CIE-LABlab(65.25, 57.95, -16.29)
CIE-LCHlch(65.25, 60.20, 344.30°)
OKLaboklab(72.38% 0.1737 -0.043)
OKLCHoklch(72.38% 0.179 346.1)
XYZxyz(51.7098, 34.3660, 52.0441)
Luminance0.3436 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F271BD #71F2A6
analogous
#E671F2 #F271BD #F2717D
triadic
#F271BD #BDF271 #71BDF2
tetradic
#F271BD #F2E671 #71F2A6 #717DF2
square
#F271BD #F2E671 #71F2A6 #717DF2
split-complementary
#F271BD #7DF271 #71F2E6
monochromatic
#D51486 #ED39A3 #F271BD #F7A9D7 #FCE1F1

Accessibility & contrast

On white

2.67
#F271BD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.87
#F271BD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F271BD
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F271BD#FFFFFF#000000##000000
##F271BD1.002.677.877.87
#FFFFFF2.671.0021.0021.00
#0000007.8721.001.001.00
##0000007.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7D91BF
Deuteranopia (green-blind)
#A0A7BA
Tritanopia (blue-blind)
#FF6F8F
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #f271bd;
/* rgb */ color: rgb(242, 113, 189);
/* oklch */ color: oklch(72.4% 0.179 346.1);
Tailwind
colors: {
  custom: {
    50: '#f99ed1',
    500: '#f271bd',
    950: '#000000',
  },
}
SCSS
$custom: #f271bd;
$custom-light: #f99ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#f271bd",
  "rgb": {
    "r": 242,
    "g": 113,
    "b": 189
  },
  "hsl": {
    "h": 324.651,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.72381,
    "c": 0.17897,
    "h": 346.1
  },
  "luminance": 0.34362
}

Semantic roles & 50–950 ramp

primary
#F271BD
secondary
#CDF2DC
accent
#E05F06
background
#FFFAFC
surface
#FFF3F9
border
#D7CDD2
text
#180F14
muted
#867F82

Preview Lab

Preview with #F271BD

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

Preview Lab → · Contrast checker → · Palette generator →

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