#F271FC#F271FC

#F271FC is a light, highly saturated purple. Relative luminance 0.377; OKLCH L 75.1% C 0.227 H 324.7°. Best body text is #000000 at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#F271FC
RGBrgb(242, 113, 252)
HSLhsl(296, 96%, 72%)
HSVhsv(296, 55%, 99%)
CMYKcmyk(4%, 55.2%, 0%, 1.2%)
CIE-LABlab(67.81, 67.87, -47.40)
CIE-LCHlch(67.81, 82.79, 325.07°)
OKLaboklab(75.11% 0.1851 -0.131)
OKLCHoklch(75.11% 0.227 324.7)
XYZxyz(60.0923, 37.7190, 96.1919)
Luminance0.3772 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F271FC #7BFC71
analogous
#AD71FC #F271FC #FC71C1
triadic
#F271FC #FCF271 #71FCF2
tetradic
#F271FC #FCAD71 #7BFC71 #71C1FC
square
#F271FC #FCAD71 #7BFC71 #71C1FC
split-complementary
#F271FC #C1FC71 #71FCAD
monochromatic
#DD05EE #ED35FB #F271FC #F7ADFD #FCE1FE

Accessibility & contrast

On white

2.46
#F271FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.54
#F271FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F271FC
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F271FC#FFFFFF#000000##000000
##F271FC1.002.468.548.54
#FFFFFF2.461.0021.0021.00
#0000008.5421.001.001.00
##0000008.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D9BFF
Deuteranopia (green-blind)
#88ABF8
Tritanopia (blue-blind)
#F783AC
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #f271fc;
/* rgb */ color: rgb(242, 113, 252);
/* oklch */ color: oklch(75.1% 0.227 324.7);
Tailwind
colors: {
  custom: {
    50: '#f9a0fe',
    500: '#f271fc',
    950: '#000000',
  },
}
SCSS
$custom: #f271fc;
$custom-light: #f9a0fe;
$custom-dark: #000000;
JSON
{
  "hex": "#f271fc",
  "rgb": {
    "r": 242,
    "g": 113,
    "b": 252
  },
  "hsl": {
    "h": 295.683,
    "s": 95.862,
    "l": 71.569
  },
  "oklch": {
    "l": 0.75109,
    "c": 0.22674,
    "h": 324.7
  },
  "luminance": 0.37716
}

Semantic roles & 50–950 ramp

primary
#F271FC
secondary
#D5F6D3
accent
#E60011
background
#FFFAFF
surface
#FFF4FF
border
#D7CED7
text
#180F18
muted
#867F86

Preview Lab

Preview with #F271FC

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

Preview Lab → · Contrast checker → · Palette generator →

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