#F271F7#F271F7

#F271F7 is a light, highly saturated purple. Relative luminance 0.374; OKLCH L 74.9% C 0.222 H 326.1°. Best body text is #000000 at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#F271F7
RGBrgb(242, 113, 247)
HSLhsl(298, 89%, 71%)
HSVhsv(298, 54%, 97%)
CMYKcmyk(2%, 54.3%, 0%, 3.1%)
CIE-LABlab(67.58, 67.01, -45.02)
CIE-LCHlch(67.58, 80.73, 326.10°)
OKLaboklab(74.86% 0.1846 -0.1242)
OKLCHoklch(74.86% 0.222 326.1)
XYZxyz(59.3104, 37.4063, 92.0738)
Luminance0.3740 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F271F7 #76F771
analogous
#AF71F7 #F271F7 #F771B9
triadic
#F271F7 #F7F271 #71F7F2
tetradic
#F271F7 #F7AF71 #76F771 #71B9F7
square
#F271F7 #F7AF71 #76F771 #71B9F7
split-complementary
#F271F7 #B9F771 #71F7AF
monochromatic
#D90DE1 #ED37F4 #F271F7 #F7ABFA #FCE2FD

Accessibility & contrast

On white

2.48
#F271F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.48
#F271F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F271F7
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F271F7#FFFFFF#000000##000000
##F271F71.002.488.488.48
#FFFFFF2.481.0021.0021.00
#0000008.4821.001.001.00
##0000008.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#619AFB
Deuteranopia (green-blind)
#8BAAF3
Tritanopia (blue-blind)
#F881AA
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #f271f7;
/* rgb */ color: rgb(242, 113, 247);
/* oklch */ color: oklch(74.9% 0.222 326.1);
Tailwind
colors: {
  custom: {
    50: '#f99ffa',
    500: '#f271f7',
    950: '#000000',
  },
}
SCSS
$custom: #f271f7;
$custom-light: #f99ffa;
$custom-dark: #000000;
JSON
{
  "hex": "#f271f7",
  "rgb": {
    "r": 242,
    "g": 113,
    "b": 247
  },
  "hsl": {
    "h": 297.761,
    "s": 89.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.74864,
    "c": 0.22244,
    "h": 326.1
  },
  "luminance": 0.37403
}

Semantic roles & 50–950 ramp

primary
#F271F7
secondary
#D1F4D0
accent
#E60009
background
#FFFAFF
surface
#FFF4FF
border
#D7CED7
text
#180F17
muted
#867F85

Preview Lab

Preview with #F271F7

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

Preview Lab → · Contrast checker → · Palette generator →

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