#F271D4#F271D4

#F271D4 is a light, vivid pink. Relative luminance 0.354; OKLCH L 73.3% C 0.194 H 337.2°. Best body text is #000000 at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#F271D4
RGBrgb(242, 113, 212)
HSLhsl(314, 83%, 70%)
HSVhsv(314, 53%, 95%)
CMYKcmyk(0%, 53.3%, 12.4%, 5.1%)
CIE-LABlab(66.09, 61.30, -27.93)
CIE-LCHlch(66.09, 67.37, 335.50°)
OKLaboklab(73.28% 0.1791 -0.0754)
OKLCHoklch(73.28% 0.194 337.2)
XYZxyz(54.4072, 35.4450, 66.2506)
Luminance0.3544 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F271D4 #71F28F
analogous
#CF71F2 #F271D4 #F27194
triadic
#F271D4 #D4F271 #71D4F2
tetradic
#F271D4 #F2CF71 #71F28F #7194F2
square
#F271D4 #F2CF71 #71F28F #7194F2
split-complementary
#F271D4 #94F271 #71F2CF
monochromatic
#D514A8 #ED39C3 #F271D4 #F7A9E5 #FCE1F6

Accessibility & contrast

On white

2.60
#F271D4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.09
#F271D4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F271D4
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F271D4#FFFFFF#000000##000000
##F271D41.002.608.098.09
#FFFFFF2.601.0021.0021.00
#0000008.0921.001.001.00
##0000008.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7494D7
Deuteranopia (green-blind)
#99A8D1
Tritanopia (blue-blind)
#FD7699
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #f271d4;
/* rgb */ color: rgb(242, 113, 212);
/* oklch */ color: oklch(73.3% 0.194 337.2);
Tailwind
colors: {
  custom: {
    50: '#f99fe1',
    500: '#f271d4',
    950: '#000000',
  },
}
SCSS
$custom: #f271d4;
$custom-light: #f99fe1;
$custom-dark: #000000;
JSON
{
  "hex": "#f271d4",
  "rgb": {
    "r": 242,
    "g": 113,
    "b": 212
  },
  "hsl": {
    "h": 313.953,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.73282,
    "c": 0.19436,
    "h": 337.2
  },
  "luminance": 0.35441
}

Semantic roles & 50–950 ramp

primary
#F271D4
secondary
#CDF2D6
accent
#E03806
background
#FFFAFD
surface
#FFF4FB
border
#D7CED4
text
#180F15
muted
#867F83

Preview Lab

Preview with #F271D4

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

Preview Lab → · Contrast checker → · Palette generator →

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