#F271BB#F271BB

#F271BB is a light, vivid pink. Relative luminance 0.343; OKLCH L 72.3% C 0.178 H 346.9°. Best body text is #000000 at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#F271BB
RGBrgb(242, 113, 187)
HSLhsl(326, 83%, 70%)
HSVhsv(326, 53%, 95%)
CMYKcmyk(0%, 53.3%, 22.7%, 5.1%)
CIE-LABlab(65.18, 57.68, -15.26)
CIE-LCHlch(65.18, 59.66, 345.18°)
OKLaboklab(72.31% 0.1732 -0.0401)
OKLCHoklch(72.31% 0.178 346.9)
XYZxyz(51.4942, 34.2798, 50.9087)
Luminance0.3427 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F271BB #71F2A8
analogous
#E871F2 #F271BB #F2717B
triadic
#F271BB #BBF271 #71BBF2
tetradic
#F271BB #F2E871 #71F2A8 #717BF2
square
#F271BB #F2E871 #71F2A8 #717BF2
split-complementary
#F271BB #7BF271 #71F2E8
monochromatic
#D51483 #ED39A0 #F271BB #F7A9D6 #FCE1F1

Accessibility & contrast

On white

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

On black

7.86
#F271BB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F271BB
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F271BB#FFFFFF#000000##000000
##F271BB1.002.677.867.86
#FFFFFF2.671.0021.0021.00
#0000007.8621.001.001.00
##0000007.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7E90BD
Deuteranopia (green-blind)
#A1A6B8
Tritanopia (blue-blind)
#FF6E8E
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #f271bb;
/* rgb */ color: rgb(242, 113, 187);
/* oklch */ color: oklch(72.3% 0.178 346.9);
Tailwind
colors: {
  custom: {
    50: '#f99ecf',
    500: '#f271bb',
    950: '#000000',
  },
}
SCSS
$custom: #f271bb;
$custom-light: #f99ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#f271bb",
  "rgb": {
    "r": 242,
    "g": 113,
    "b": 187
  },
  "hsl": {
    "h": 325.581,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.72308,
    "c": 0.17779,
    "h": 346.9
  },
  "luminance": 0.34275
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F271BB

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

Preview Lab → · Contrast checker → · Palette generator →

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