#F271CB#F271CB

#F271CB is a light, vivid pink. Relative luminance 0.350; OKLCH L 72.9% C 0.188 H 340.5°. Best body text is #000000 at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#F271CB
RGBrgb(242, 113, 203)
HSLhsl(318, 83%, 70%)
HSVhsv(318, 53%, 95%)
CMYKcmyk(0%, 53.3%, 16.1%, 5.1%)
CIE-LABlab(65.75, 59.95, -23.42)
CIE-LCHlch(65.75, 64.36, 338.67°)
OKLaboklab(72.92% 0.1772 -0.0627)
OKLCHoklch(72.92% 0.188 340.5)
XYZxyz(53.3034, 35.0035, 60.4373)
Luminance0.3500 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F271CB #71F298
analogous
#D971F2 #F271CB #F2718A
triadic
#F271CB #CBF271 #71CBF2
tetradic
#F271CB #F2D971 #71F298 #718AF2
square
#F271CB #F2D971 #71F298 #718AF2
split-complementary
#F271CB #8AF271 #71F2D9
monochromatic
#D5149B #ED39B6 #F271CB #F7A9E0 #FCE1F4

Accessibility & contrast

On white

2.63
#F271CB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.00
#F271CB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F271CB
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F271CB#FFFFFF#000000##000000
##F271CB1.002.638.008.00
#FFFFFF2.631.0021.0021.00
#0000008.0021.001.001.00
##0000008.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7893CE
Deuteranopia (green-blind)
#9CA7C8
Tritanopia (blue-blind)
#FE7395
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #f271cb;
/* rgb */ color: rgb(242, 113, 203);
/* oklch */ color: oklch(72.9% 0.188 340.5);
Tailwind
colors: {
  custom: {
    50: '#f99fdb',
    500: '#f271cb',
    950: '#000000',
  },
}
SCSS
$custom: #f271cb;
$custom-light: #f99fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#f271cb",
  "rgb": {
    "r": 242,
    "g": 113,
    "b": 203
  },
  "hsl": {
    "h": 318.14,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.72916,
    "c": 0.18796,
    "h": 340.5
  },
  "luminance": 0.34999
}

Semantic roles & 50–950 ramp

primary
#F271CB
secondary
#CDF2D8
accent
#E04806
background
#FFFAFD
surface
#FFF4FB
border
#D7CED4
text
#180F15
muted
#867F83

Preview Lab

Preview with #F271CB

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

Preview Lab → · Contrast checker → · Palette generator →

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