#F271DB#F271DB

#F271DB is a light, vivid pink. Relative luminance 0.358; OKLCH L 73.6% C 0.200 H 334.7°. Best body text is #000000 at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#F271DB
RGBrgb(242, 113, 219)
HSLhsl(311, 83%, 70%)
HSVhsv(311, 53%, 95%)
CMYKcmyk(0%, 53.3%, 9.5%, 5.1%)
CIE-LABlab(66.37, 62.39, -31.41)
CIE-LCHlch(66.37, 69.85, 333.27°)
OKLaboklab(73.58% 0.1805 -0.0852)
OKLCHoklch(73.58% 0.2 334.7)
XYZxyz(55.3094, 35.8059, 71.0022)
Luminance0.3580 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F271DB #71F288
analogous
#C971F2 #F271DB #F2719A
triadic
#F271DB #DBF271 #71DBF2
tetradic
#F271DB #F2C971 #71F288 #719AF2
square
#F271DB #F2C971 #71F288 #719AF2
split-complementary
#F271DB #9AF271 #71F2C9
monochromatic
#D514B3 #ED39CD #F271DB #F7A9E9 #FCE1F7

Accessibility & contrast

On white

2.57
#F271DB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.16
#F271DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F271DB
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F271DB#FFFFFF#000000##000000
##F271DB1.002.578.168.16
#FFFFFF2.571.0021.0021.00
#0000008.1621.001.001.00
##0000008.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7195DE
Deuteranopia (green-blind)
#96A8D7
Tritanopia (blue-blind)
#FC789C
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #f271db;
/* rgb */ color: rgb(242, 113, 219);
/* oklch */ color: oklch(73.6% 0.200 334.7);
Tailwind
colors: {
  custom: {
    50: '#f99fe6',
    500: '#f271db',
    950: '#000000',
  },
}
SCSS
$custom: #f271db;
$custom-light: #f99fe6;
$custom-dark: #000000;
JSON
{
  "hex": "#f271db",
  "rgb": {
    "r": 242,
    "g": 113,
    "b": 219
  },
  "hsl": {
    "h": 310.698,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.73578,
    "c": 0.1996,
    "h": 334.7
  },
  "luminance": 0.35802
}

Semantic roles & 50–950 ramp

primary
#F271DB
secondary
#CDF2D4
accent
#E02D06
background
#FFFAFE
surface
#FFF4FC
border
#D7CED5
text
#180F16
muted
#867F84

Preview Lab

Preview with #F271DB

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

Preview Lab → · Contrast checker → · Palette generator →

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