#F271FB#F271FB

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

Color values

HEX#F271FB
RGBrgb(242, 113, 251)
HSLhsl(296, 95%, 71%)
HSVhsv(296, 55%, 98%)
CMYKcmyk(3.6%, 55%, 0%, 1.6%)
CIE-LABlab(67.77, 67.70, -46.93)
CIE-LCHlch(67.77, 82.37, 325.27°)
OKLaboklab(75.06% 0.185 -0.1297)
OKLCHoklch(75.06% 0.226 325)
XYZxyz(59.9342, 37.6558, 95.3595)
Luminance0.3765 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F271FB #7AFB71
analogous
#AD71FB #F271FB #FB71BF
triadic
#F271FB #FBF271 #71FBF2
tetradic
#F271FB #FBAD71 #7AFB71 #71BFFB
square
#F271FB #FBAD71 #7AFB71 #71BFFB
split-complementary
#F271FB #BFFB71 #71FBAD
monochromatic
#DC07EB #ED35F9 #F271FB #F7ADFD #FCE1FE

Accessibility & contrast

On white

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

On black

8.53
#F271FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F271FB
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F271FB#FFFFFF#000000##000000
##F271FB1.002.468.538.53
#FFFFFF2.461.0021.0021.00
#0000008.5321.001.001.00
##0000008.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E9BFF
Deuteranopia (green-blind)
#89ABF7
Tritanopia (blue-blind)
#F783AC
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #f271fb;
/* rgb */ color: rgb(242, 113, 251);
/* oklch */ color: oklch(75.1% 0.226 325.0);
Tailwind
colors: {
  custom: {
    50: '#f9a0fd',
    500: '#f271fb',
    950: '#000000',
  },
}
SCSS
$custom: #f271fb;
$custom-light: #f9a0fd;
$custom-dark: #000000;
JSON
{
  "hex": "#f271fb",
  "rgb": {
    "r": 242,
    "g": 113,
    "b": 251
  },
  "hsl": {
    "h": 296.087,
    "s": 94.521,
    "l": 71.373
  },
  "oklch": {
    "l": 0.7506,
    "c": 0.22588,
    "h": 325
  },
  "luminance": 0.37653
}

Semantic roles & 50–950 ramp

primary
#F271FB
secondary
#D4F6D2
accent
#E6000F
background
#FFFAFF
surface
#FFF4FF
border
#D7CED7
text
#180F18
muted
#867F86

Preview Lab

Preview with #F271FB

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

Preview Lab → · Contrast checker → · Palette generator →

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