#F271BA#F271BA

#F271BA is a light, vivid pink. Relative luminance 0.342; OKLCH L 72.3% C 0.177 H 347.4°. Best body text is #000000 at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#F271BA
RGBrgb(242, 113, 186)
HSLhsl(326, 83%, 70%)
HSVhsv(326, 53%, 95%)
CMYKcmyk(0%, 53.3%, 23.1%, 5.1%)
CIE-LABlab(65.15, 57.54, -14.74)
CIE-LCHlch(65.15, 59.40, 345.63°)
OKLaboklab(72.27% 0.1729 -0.0387)
OKLCHoklch(72.27% 0.177 347.4)
XYZxyz(51.3875, 34.2371, 50.3469)
Luminance0.3423 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F271BA #71F2A9
analogous
#EA71F2 #F271BA #F27179
triadic
#F271BA #BAF271 #71BAF2
tetradic
#F271BA #F2EA71 #71F2A9 #7179F2
square
#F271BA #F2EA71 #71F2A9 #7179F2
split-complementary
#F271BA #79F271 #71F2EA
monochromatic
#D51481 #ED399F #F271BA #F7A9D5 #FCE1F0

Accessibility & contrast

On white

2.68
#F271BA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.85
#F271BA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F271BA
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F271BA#FFFFFF#000000##000000
##F271BA1.002.687.857.85
#FFFFFF2.681.0021.0021.00
#0000007.8521.001.001.00
##0000007.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7E90BC
Deuteranopia (green-blind)
#A1A6B7
Tritanopia (blue-blind)
#FF6E8D
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #f271ba;
/* rgb */ color: rgb(242, 113, 186);
/* oklch */ color: oklch(72.3% 0.177 347.4);
Tailwind
colors: {
  custom: {
    50: '#f99ece',
    500: '#f271ba',
    950: '#000000',
  },
}
SCSS
$custom: #f271ba;
$custom-light: #f99ece;
$custom-dark: #000000;
JSON
{
  "hex": "#f271ba",
  "rgb": {
    "r": 242,
    "g": 113,
    "b": 186
  },
  "hsl": {
    "h": 326.047,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.72271,
    "c": 0.17721,
    "h": 347.4
  },
  "luminance": 0.34233
}

Semantic roles & 50–950 ramp

primary
#F271BA
secondary
#CDF2DD
accent
#E06406
background
#FFFAFC
surface
#FFF3F9
border
#D7CDD2
text
#180F13
muted
#867F82

Preview Lab

Preview with #F271BA

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

Preview Lab → · Contrast checker → · Palette generator →

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