#F271B2#F271B2

#F271B2 is a light, vivid pink. Relative luminance 0.339; OKLCH L 72.0% C 0.173 H 350.9°. Best body text is #000000 at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#F271B2
RGBrgb(242, 113, 178)
HSLhsl(330, 83%, 70%)
HSVhsv(330, 53%, 95%)
CMYKcmyk(0%, 53.3%, 26.4%, 5.1%)
CIE-LABlab(64.89, 56.47, -10.60)
CIE-LCHlch(64.89, 57.46, 349.37°)
OKLaboklab(71.99% 0.1707 -0.0275)
OKLCHoklch(71.99% 0.173 350.9)
XYZxyz(50.5608, 33.9064, 45.9926)
Luminance0.3390 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F271B2 #71F2B1
analogous
#F171F2 #F271B2 #F27172
triadic
#F271B2 #B2F271 #71B2F2
tetradic
#F271B2 #F2F171 #71F2B1 #7172F2
square
#F271B2 #F2F171 #71F2B1 #7172F2
split-complementary
#F271B2 #72F271 #71F2F1
monochromatic
#D51475 #ED3994 #F271B2 #F7A9D0 #FCE1EF

Accessibility & contrast

On white

2.70
#F271B2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.78
#F271B2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F271B2
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F271B2#FFFFFF#000000##000000
##F271B21.002.707.787.78
#FFFFFF2.701.0021.0021.00
#0000007.7821.001.001.00
##0000007.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#818FB4
Deuteranopia (green-blind)
#A3A6AF
Tritanopia (blue-blind)
#FF6C8A
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #f271b2;
/* rgb */ color: rgb(242, 113, 178);
/* oklch */ color: oklch(72.0% 0.173 350.9);
Tailwind
colors: {
  custom: {
    50: '#f99ec9',
    500: '#f271b2',
    950: '#000000',
  },
}
SCSS
$custom: #f271b2;
$custom-light: #f99ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#f271b2",
  "rgb": {
    "r": 242,
    "g": 113,
    "b": 178
  },
  "hsl": {
    "h": 329.767,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.7199,
    "c": 0.17286,
    "h": 350.9
  },
  "luminance": 0.33902
}

Semantic roles & 50–950 ramp

primary
#F271B2
secondary
#CDF2DF
accent
#E07206
background
#FFFAFC
surface
#FFF3F8
border
#D7CDD1
text
#180F13
muted
#867F82

Preview Lab

Preview with #F271B2

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

Preview Lab → · Contrast checker → · Palette generator →

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