#F271D3#F271D3

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

Color values

HEX#F271D3
RGBrgb(242, 113, 211)
HSLhsl(314, 83%, 70%)
HSVhsv(314, 53%, 95%)
CMYKcmyk(0%, 53.3%, 12.8%, 5.1%)
CIE-LABlab(66.05, 61.15, -27.43)
CIE-LCHlch(66.05, 67.02, 335.84°)
OKLaboklab(73.24% 0.1789 -0.074)
OKLCHoklch(73.24% 0.194 337.5)
XYZxyz(54.2815, 35.3947, 65.5883)
Luminance0.3539 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F271D3 #71F290
analogous
#D171F2 #F271D3 #F27192
triadic
#F271D3 #D3F271 #71D3F2
tetradic
#F271D3 #F2D171 #71F290 #7192F2
square
#F271D3 #F2D171 #71F290 #7192F2
split-complementary
#F271D3 #92F271 #71F2D1
monochromatic
#D514A7 #ED39C2 #F271D3 #F7A9E4 #FCE1F6

Accessibility & contrast

On white

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

On black

8.08
#F271D3 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F271D3
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F271D3#FFFFFF#000000##000000
##F271D31.002.608.088.08
#FFFFFF2.601.0021.0021.00
#0000008.0821.001.001.00
##0000008.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7494D6
Deuteranopia (green-blind)
#99A8D0
Tritanopia (blue-blind)
#FD7699
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #f271d3;
/* rgb */ color: rgb(242, 113, 211);
/* oklch */ color: oklch(73.2% 0.194 337.5);
Tailwind
colors: {
  custom: {
    50: '#f99fe0',
    500: '#f271d3',
    950: '#000000',
  },
}
SCSS
$custom: #f271d3;
$custom-light: #f99fe0;
$custom-dark: #000000;
JSON
{
  "hex": "#f271d3",
  "rgb": {
    "r": 242,
    "g": 113,
    "b": 211
  },
  "hsl": {
    "h": 314.419,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.7324,
    "c": 0.19362,
    "h": 337.5
  },
  "luminance": 0.35391
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F271D3

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

Preview Lab → · Contrast checker → · Palette generator →

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