#F271FD#F271FD

#F271FD is a light, highly saturated purple. Relative luminance 0.378; OKLCH L 75.2% C 0.228 H 324.4°. Best body text is #000000 at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#F271FD
RGBrgb(242, 113, 253)
HSLhsl(295, 97%, 72%)
HSVhsv(295, 55%, 99%)
CMYKcmyk(4.3%, 55.3%, 0%, 0.8%)
CIE-LABlab(67.86, 68.05, -47.87)
CIE-LCHlch(67.86, 83.20, 324.87°)
OKLaboklab(75.16% 0.1852 -0.1324)
OKLCHoklch(75.16% 0.228 324.4)
XYZxyz(60.2512, 37.7826, 97.0286)
Luminance0.3778 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F271FD #7CFD71
analogous
#AC71FD #F271FD #FD71C2
triadic
#F271FD #FDF271 #71FDF2
tetradic
#F271FD #FDAC71 #7CFD71 #71C2FD
square
#F271FD #FDAC71 #7CFD71 #71C2FD
split-complementary
#F271FD #C2FD71 #71FDAC
monochromatic
#DE03F0 #EC35FC #F271FD #F8ADFE #FCE1FF

Accessibility & contrast

On white

2.45
#F271FD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.56
#F271FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F271FD
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F271FD#FFFFFF#000000##000000
##F271FD1.002.458.568.56
#FFFFFF2.451.0021.0021.00
#0000008.5621.001.001.00
##0000008.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C9BFF
Deuteranopia (green-blind)
#88ABF9
Tritanopia (blue-blind)
#F784AD
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #f271fd;
/* rgb */ color: rgb(242, 113, 253);
/* oklch */ color: oklch(75.2% 0.228 324.4);
Tailwind
colors: {
  custom: {
    50: '#f9a0fe',
    500: '#f271fd',
    950: '#000000',
  },
}
SCSS
$custom: #f271fd;
$custom-light: #f9a0fe;
$custom-dark: #000000;
JSON
{
  "hex": "#f271fd",
  "rgb": {
    "r": 242,
    "g": 113,
    "b": 253
  },
  "hsl": {
    "h": 295.286,
    "s": 97.222,
    "l": 71.765
  },
  "oklch": {
    "l": 0.75159,
    "c": 0.22762,
    "h": 324.4
  },
  "luminance": 0.37779
}

Semantic roles & 50–950 ramp

primary
#F271FD
secondary
#D6F7D3
accent
#E60012
background
#FFFAFF
surface
#FFF4FF
border
#D7CED7
text
#180F18
muted
#867F86

Preview Lab

Preview with #F271FD

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

Preview Lab → · Contrast checker → · Palette generator →

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