#F271FE#F271FE

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

Color values

HEX#F271FE
RGBrgb(242, 113, 254)
HSLhsl(295, 99%, 72%)
HSVhsv(295, 56%, 100%)
CMYKcmyk(4.7%, 55.5%, 0%, 0.4%)
CIE-LABlab(67.91, 68.23, -48.35)
CIE-LCHlch(67.91, 83.62, 324.68°)
OKLaboklab(75.21% 0.1852 -0.1338)
OKLCHoklch(75.21% 0.228 324.2)
XYZxyz(60.4109, 37.8465, 97.8698)
Luminance0.3784 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F271FE #7DFE71
analogous
#AC71FE #F271FE #FE71C3
triadic
#F271FE #FEF271 #71FEF2
tetradic
#F271FE #FEAC71 #7DFE71 #71C3FE
square
#F271FE #FEAC71 #7DFE71 #71C3FE
split-complementary
#F271FE #C3FE71 #71FEAC
monochromatic
#DE02F3 #EC34FE #F271FE #F8AEFE #FCE1FF

Accessibility & contrast

On white

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

On black

8.57
#F271FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F271FE
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F271FE#FFFFFF#000000##000000
##F271FE1.002.458.578.57
#FFFFFF2.451.0021.0021.00
#0000008.5721.001.001.00
##0000008.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C9BFF
Deuteranopia (green-blind)
#87ABFA
Tritanopia (blue-blind)
#F684AD
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #f271fe;
/* rgb */ color: rgb(242, 113, 254);
/* oklch */ color: oklch(75.2% 0.228 324.2);
Tailwind
colors: {
  custom: {
    50: '#f9a0ff',
    500: '#f271fe',
    950: '#000000',
  },
}
SCSS
$custom: #f271fe;
$custom-light: #f9a0ff;
$custom-dark: #000000;
JSON
{
  "hex": "#f271fe",
  "rgb": {
    "r": 242,
    "g": 113,
    "b": 254
  },
  "hsl": {
    "h": 294.894,
    "s": 98.601,
    "l": 71.961
  },
  "oklch": {
    "l": 0.75209,
    "c": 0.22848,
    "h": 324.2
  },
  "luminance": 0.37843
}

Semantic roles & 50–950 ramp

primary
#F271FE
secondary
#D7F7D4
accent
#E60014
background
#FFFAFF
surface
#FFF4FF
border
#D7CED7
text
#180F18
muted
#867F86

Preview Lab

Preview with #F271FE

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

Preview Lab → · Contrast checker → · Palette generator →

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