#F271F5#F271F5

#F271F5 is a light, highly saturated purple. Relative luminance 0.373; OKLCH L 74.8% C 0.221 H 326.6°. Best body text is #000000 at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#F271F5
RGBrgb(242, 113, 245)
HSLhsl(299, 87%, 70%)
HSVhsv(299, 54%, 96%)
CMYKcmyk(1.2%, 53.9%, 0%, 3.9%)
CIE-LABlab(67.49, 66.66, -44.07)
CIE-LCHlch(67.49, 79.91, 326.53°)
OKLaboklab(74.77% 0.1843 -0.1214)
OKLCHoklch(74.77% 0.221 326.6)
XYZxyz(59.0034, 37.2835, 90.4571)
Luminance0.3728 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F271F5 #74F571
analogous
#B071F5 #F271F5 #F571B6
triadic
#F271F5 #F5F271 #71F5F2
tetradic
#F271F5 #F5B071 #74F571 #71B6F5
square
#F271F5 #F5B071 #74F571 #71B6F5
split-complementary
#F271F5 #B6F571 #71F5B0
monochromatic
#D710DC #ED38F1 #F271F5 #F7AAF9 #FCE2FD

Accessibility & contrast

On white

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

On black

8.46
#F271F5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F271F5
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F271F5#FFFFFF#000000##000000
##F271F51.002.488.468.46
#FFFFFF2.481.0021.0021.00
#0000008.4621.001.001.00
##0000008.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#629AF9
Deuteranopia (green-blind)
#8BAAF1
Tritanopia (blue-blind)
#F881A9
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #f271f5;
/* rgb */ color: rgb(242, 113, 245);
/* oklch */ color: oklch(74.8% 0.221 326.6);
Tailwind
colors: {
  custom: {
    50: '#f99ff9',
    500: '#f271f5',
    950: '#000000',
  },
}
SCSS
$custom: #f271f5;
$custom-light: #f99ff9;
$custom-dark: #000000;
JSON
{
  "hex": "#f271f5",
  "rgb": {
    "r": 242,
    "g": 113,
    "b": 245
  },
  "hsl": {
    "h": 298.636,
    "s": 86.842,
    "l": 70.196
  },
  "oklch": {
    "l": 0.74767,
    "c": 0.22073,
    "h": 326.6
  },
  "luminance": 0.3728
}

Semantic roles & 50–950 ramp

primary
#F271F5
secondary
#CFF3CF
accent
#E30207
background
#FFFAFF
surface
#FFF4FF
border
#D7CED7
text
#180F17
muted
#867F85

Preview Lab

Preview with #F271F5

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

Preview Lab → · Contrast checker → · Palette generator →

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