#F271A5#F271A5

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

Color values

HEX#F271A5
RGBrgb(242, 113, 165)
HSLhsl(336, 83%, 70%)
HSVhsv(336, 53%, 95%)
CMYKcmyk(0%, 53.3%, 31.8%, 5.1%)
CIE-LABlab(64.49, 54.84, -3.79)
CIE-LCHlch(64.49, 54.97, 356.04°)
OKLaboklab(71.56% 0.1667 -0.0093)
OKLCHoklch(71.56% 0.167 356.8)
XYZxyz(49.3169, 33.4089, 39.4413)
Luminance0.3340 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F271A5 #71F2BE
analogous
#F271E6 #F271A5 #F27E71
triadic
#F271A5 #A5F271 #71A5F2
tetradic
#F271A5 #E6F271 #71F2BE #7E71F2
square
#F271A5 #E6F271 #71F2BE #7E71F2
split-complementary
#F271A5 #71F27E #71E6F2
monochromatic
#D51462 #ED3981 #F271A5 #F7A9C9 #FCE1EC

Accessibility & contrast

On white

2.73
#F271A5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.68
#F271A5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F271A5
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F271A5#FFFFFF#000000##000000
##F271A51.002.737.687.68
#FFFFFF2.731.0021.0021.00
#0000007.6821.001.001.00
##0000007.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#848EA7
Deuteranopia (green-blind)
#A6A5A2
Tritanopia (blue-blind)
#FF6885
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #f271a5;
/* rgb */ color: rgb(242, 113, 165);
/* oklch */ color: oklch(71.6% 0.167 356.8);
Tailwind
colors: {
  custom: {
    50: '#fa9ebf',
    500: '#f271a5',
    950: '#000000',
  },
}
SCSS
$custom: #f271a5;
$custom-light: #fa9ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#f271a5",
  "rgb": {
    "r": 242,
    "g": 113,
    "b": 165
  },
  "hsl": {
    "h": 335.814,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.71562,
    "c": 0.16691,
    "h": 356.8
  },
  "luminance": 0.33404
}

Semantic roles & 50–950 ramp

primary
#F271A5
secondary
#CDF2E3
accent
#E08806
background
#FFFAFB
surface
#FFF3F7
border
#D7CDD0
text
#180F12
muted
#867F81

Preview Lab

Preview with #F271A5

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

Preview Lab → · Contrast checker → · Palette generator →

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