#F271AF#F271AF

#F271AF is a light, vivid pink. Relative luminance 0.338; OKLCH L 71.9% C 0.171 H 352.2°. Best body text is #000000 at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#F271AF
RGBrgb(242, 113, 175)
HSLhsl(331, 83%, 70%)
HSVhsv(331, 53%, 95%)
CMYKcmyk(0%, 53.3%, 27.7%, 5.1%)
CIE-LABlab(64.79, 56.09, -9.04)
CIE-LCHlch(64.79, 56.81, 350.85°)
OKLaboklab(71.89% 0.1698 -0.0233)
OKLCHoklch(71.89% 0.171 352.2)
XYZxyz(50.2629, 33.7873, 44.4236)
Luminance0.3378 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F271AF #71F2B4
analogous
#F271EF #F271AF #F27471
triadic
#F271AF #AFF271 #71AFF2
tetradic
#F271AF #EFF271 #71F2B4 #7471F2
square
#F271AF #EFF271 #71F2B4 #7471F2
split-complementary
#F271AF #71F274 #71EFF2
monochromatic
#D51471 #ED398F #F271AF #F7A9CF #FCE1EE

Accessibility & contrast

On white

2.71
#F271AF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.76
#F271AF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F271AF
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F271AF#FFFFFF#000000##000000
##F271AF1.002.717.767.76
#FFFFFF2.711.0021.0021.00
#0000007.7621.001.001.00
##0000007.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#818FB1
Deuteranopia (green-blind)
#A4A6AC
Tritanopia (blue-blind)
#FF6B89
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #f271af;
/* rgb */ color: rgb(242, 113, 175);
/* oklch */ color: oklch(71.9% 0.171 352.2);
Tailwind
colors: {
  custom: {
    50: '#f99ec6',
    500: '#f271af',
    950: '#000000',
  },
}
SCSS
$custom: #f271af;
$custom-light: #f99ec6;
$custom-dark: #000000;
JSON
{
  "hex": "#f271af",
  "rgb": {
    "r": 242,
    "g": 113,
    "b": 175
  },
  "hsl": {
    "h": 331.163,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.71888,
    "c": 0.17136,
    "h": 352.2
  },
  "luminance": 0.33783
}

Semantic roles & 50–950 ramp

primary
#F271AF
secondary
#CDF2E0
accent
#E07706
background
#FFFAFC
surface
#FFF3F8
border
#D7CDD1
text
#180F13
muted
#867F82

Preview Lab

Preview with #F271AF

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

Preview Lab → · Contrast checker → · Palette generator →

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