#F271CC#F271CC

#F271CC is a light, vivid pink. Relative luminance 0.350; OKLCH L 73.0% C 0.189 H 340.1°. Best body text is #000000 at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#F271CC
RGBrgb(242, 113, 204)
HSLhsl(318, 83%, 70%)
HSVhsv(318, 53%, 95%)
CMYKcmyk(0%, 53.3%, 15.7%, 5.1%)
CIE-LABlab(65.79, 60.10, -23.92)
CIE-LCHlch(65.79, 64.68, 338.30°)
OKLaboklab(72.96% 0.1774 -0.0641)
OKLCHoklch(72.96% 0.189 340.1)
XYZxyz(53.4230, 35.0513, 61.0669)
Luminance0.3505 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F271CC #71F297
analogous
#D771F2 #F271CC #F2718C
triadic
#F271CC #CCF271 #71CCF2
tetradic
#F271CC #F2D771 #71F297 #718CF2
square
#F271CC #F2D771 #71F297 #718CF2
split-complementary
#F271CC #8CF271 #71F2D7
monochromatic
#D5149C #ED39B8 #F271CC #F7A9E0 #FCE1F4

Accessibility & contrast

On white

2.62
#F271CC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.01
#F271CC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F271CC
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F271CC#FFFFFF#000000##000000
##F271CC1.002.628.018.01
#FFFFFF2.621.0021.0021.00
#0000008.0121.001.001.00
##0000008.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7793CF
Deuteranopia (green-blind)
#9CA7C9
Tritanopia (blue-blind)
#FE7495
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #f271cc;
/* rgb */ color: rgb(242, 113, 204);
/* oklch */ color: oklch(73.0% 0.189 340.1);
Tailwind
colors: {
  custom: {
    50: '#f99fdb',
    500: '#f271cc',
    950: '#000000',
  },
}
SCSS
$custom: #f271cc;
$custom-light: #f99fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#f271cc",
  "rgb": {
    "r": 242,
    "g": 113,
    "b": 204
  },
  "hsl": {
    "h": 317.674,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.72956,
    "c": 0.18865,
    "h": 340.1
  },
  "luminance": 0.35047
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F271CC

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

Preview Lab → · Contrast checker → · Palette generator →

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