#F271DC#F271DC

#F271DC is a light, highly saturated pink. Relative luminance 0.359; OKLCH L 73.6% C 0.200 H 334.4°. Best body text is #000000 at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#F271DC
RGBrgb(242, 113, 220)
HSLhsl(310, 83%, 70%)
HSVhsv(310, 53%, 95%)
CMYKcmyk(0%, 53.3%, 9.1%, 5.1%)
CIE-LABlab(66.41, 62.55, -31.91)
CIE-LCHlch(66.41, 70.21, 332.97°)
OKLaboklab(73.62% 0.1807 -0.0866)
OKLCHoklch(73.62% 0.2 334.4)
XYZxyz(55.4415, 35.8587, 71.6976)
Luminance0.3585 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F271DC #71F287
analogous
#C871F2 #F271DC #F2719B
triadic
#F271DC #DCF271 #71DCF2
tetradic
#F271DC #F2C871 #71F287 #719BF2
square
#F271DC #F2C871 #71F287 #719BF2
split-complementary
#F271DC #9BF271 #71F2C8
monochromatic
#D514B4 #ED39CE #F271DC #F7A9EA #FCE1F8

Accessibility & contrast

On white

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

On black

8.17
#F271DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F271DC
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F271DC#FFFFFF#000000##000000
##F271DC1.002.578.178.17
#FFFFFF2.571.0021.0021.00
#0000008.1721.001.001.00
##0000008.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7095DF
Deuteranopia (green-blind)
#96A8D8
Tritanopia (blue-blind)
#FC799D
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #f271dc;
/* rgb */ color: rgb(242, 113, 220);
/* oklch */ color: oklch(73.6% 0.200 334.4);
Tailwind
colors: {
  custom: {
    50: '#f99fe7',
    500: '#f271dc',
    950: '#000000',
  },
}
SCSS
$custom: #f271dc;
$custom-light: #f99fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#f271dc",
  "rgb": {
    "r": 242,
    "g": 113,
    "b": 220
  },
  "hsl": {
    "h": 310.233,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.73621,
    "c": 0.20038,
    "h": 334.4
  },
  "luminance": 0.35855
}

Semantic roles & 50–950 ramp

primary
#F271DC
secondary
#CDF2D3
accent
#E02B06
background
#FFFAFE
surface
#FFF4FC
border
#D7CED5
text
#180F16
muted
#867F84

Preview Lab

Preview with #F271DC

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

Preview Lab → · Contrast checker → · Palette generator →

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