#F271A4#F271A4

#F271A4 is a light, vivid pink. Relative luminance 0.334; OKLCH L 71.5% C 0.167 H 357.3°. Best body text is #000000 at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#F271A4
RGBrgb(242, 113, 164)
HSLhsl(336, 83%, 70%)
HSVhsv(336, 53%, 95%)
CMYKcmyk(0%, 53.3%, 32.2%, 5.1%)
CIE-LABlab(64.46, 54.72, -3.27)
CIE-LCHlch(64.46, 54.81, 356.58°)
OKLaboklab(71.53% 0.1663 -0.0079)
OKLCHoklch(71.53% 0.167 357.3)
XYZxyz(49.2262, 33.3726, 38.9638)
Luminance0.3337 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F271A4 #71F2BF
analogous
#F271E5 #F271A4 #F27F71
triadic
#F271A4 #A4F271 #71A4F2
tetradic
#F271A4 #E5F271 #71F2BF #7F71F2
square
#F271A4 #E5F271 #71F2BF #7F71F2
split-complementary
#F271A4 #71F27F #71E5F2
monochromatic
#D51460 #ED3980 #F271A4 #F7A9C8 #FCE1EC

Accessibility & contrast

On white

2.74
#F271A4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.67
#F271A4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F271A4
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F271A4#FFFFFF#000000##000000
##F271A41.002.747.677.67
#FFFFFF2.741.0021.0021.00
#0000007.6721.001.001.00
##0000007.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#858DA6
Deuteranopia (green-blind)
#A6A5A1
Tritanopia (blue-blind)
#FF6884
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #f271a4;
/* rgb */ color: rgb(242, 113, 164);
/* oklch */ color: oklch(71.5% 0.167 357.3);
Tailwind
colors: {
  custom: {
    50: '#fa9ebe',
    500: '#f271a4',
    950: '#000000',
  },
}
SCSS
$custom: #f271a4;
$custom-light: #fa9ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#f271a4",
  "rgb": {
    "r": 242,
    "g": 113,
    "b": 164
  },
  "hsl": {
    "h": 336.279,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.7153,
    "c": 0.16652,
    "h": 357.3
  },
  "luminance": 0.33368
}

Semantic roles & 50–950 ramp

primary
#F271A4
secondary
#CDF2E3
accent
#E08A06
background
#FFFAFB
surface
#FFF3F6
border
#D7CDD0
text
#180F12
muted
#867F81

Preview Lab

Preview with #F271A4

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

Preview Lab → · Contrast checker → · Palette generator →

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