#F271FA#F271FA

#F271FA is a light, highly saturated purple. Relative luminance 0.376; OKLCH L 75.0% C 0.225 H 325.2°. Best body text is #000000 at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#F271FA
RGBrgb(242, 113, 250)
HSLhsl(296, 93%, 71%)
HSVhsv(296, 55%, 98%)
CMYKcmyk(3.2%, 54.8%, 0%, 2%)
CIE-LABlab(67.72, 67.53, -46.45)
CIE-LCHlch(67.72, 81.96, 325.48°)
OKLaboklab(75.01% 0.1849 -0.1283)
OKLCHoklch(75.01% 0.225 325.2)
XYZxyz(59.7770, 37.5929, 94.5315)
Luminance0.3759 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F271FA #79FA71
analogous
#AD71FA #F271FA #FA71BD
triadic
#F271FA #FAF271 #71FAF2
tetradic
#F271FA #FAAD71 #79FA71 #71BDFA
square
#F271FA #FAAD71 #79FA71 #71BDFA
split-complementary
#F271FA #BDFA71 #71FAAD
monochromatic
#DB08E8 #ED36F8 #F271FA #F7ACFC #FCE1FE

Accessibility & contrast

On white

2.47
#F271FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.52
#F271FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F271FA
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F271FA#FFFFFF#000000##000000
##F271FA1.002.478.528.52
#FFFFFF2.471.0021.0021.00
#0000008.5221.001.001.00
##0000008.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F9BFE
Deuteranopia (green-blind)
#89ABF6
Tritanopia (blue-blind)
#F783AB
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #f271fa;
/* rgb */ color: rgb(242, 113, 250);
/* oklch */ color: oklch(75.0% 0.225 325.2);
Tailwind
colors: {
  custom: {
    50: '#f9a0fc',
    500: '#f271fa',
    950: '#000000',
  },
}
SCSS
$custom: #f271fa;
$custom-light: #f9a0fc;
$custom-dark: #000000;
JSON
{
  "hex": "#f271fa",
  "rgb": {
    "r": 242,
    "g": 113,
    "b": 250
  },
  "hsl": {
    "h": 296.496,
    "s": 93.197,
    "l": 71.176
  },
  "oklch": {
    "l": 0.75011,
    "c": 0.22501,
    "h": 325.2
  },
  "luminance": 0.3759
}

Semantic roles & 50–950 ramp

primary
#F271FA
secondary
#D3F5D1
accent
#E6000D
background
#FFFAFF
surface
#FFF4FF
border
#D7CED7
text
#180F17
muted
#867F85

Preview Lab

Preview with #F271FA

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

Preview Lab → · Contrast checker → · Palette generator →

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