#F271F8#F271F8

#F271F8 is a light, highly saturated purple. Relative luminance 0.375; OKLCH L 74.9% C 0.223 H 325.8°. Best body text is #000000 at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#F271F8
RGBrgb(242, 113, 248)
HSLhsl(297, 91%, 71%)
HSVhsv(297, 54%, 97%)
CMYKcmyk(2.4%, 54.4%, 0%, 2.7%)
CIE-LABlab(67.63, 67.18, -45.50)
CIE-LCHlch(67.63, 81.14, 325.89°)
OKLaboklab(74.91% 0.1847 -0.1255)
OKLCHoklch(74.91% 0.223 325.8)
XYZxyz(59.4651, 37.4681, 92.8886)
Luminance0.3746 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F271F8 #77F871
analogous
#AE71F8 #F271F8 #F871BB
triadic
#F271F8 #F8F271 #71F8F2
tetradic
#F271F8 #F8AE71 #77F871 #71BBF8
square
#F271F8 #F8AE71 #77F871 #71BBF8
split-complementary
#F271F8 #BBF871 #71F8AE
monochromatic
#DA0BE3 #ED37F5 #F271F8 #F7ABFB #FCE2FE

Accessibility & contrast

On white

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

On black

8.49
#F271F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F271F8
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F271F8#FFFFFF#000000##000000
##F271F81.002.478.498.49
#FFFFFF2.471.0021.0021.00
#0000008.4921.001.001.00
##0000008.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#609AFC
Deuteranopia (green-blind)
#8AAAF4
Tritanopia (blue-blind)
#F782AA
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #f271f8;
/* rgb */ color: rgb(242, 113, 248);
/* oklch */ color: oklch(74.9% 0.223 325.8);
Tailwind
colors: {
  custom: {
    50: '#f9a0fb',
    500: '#f271f8',
    950: '#000000',
  },
}
SCSS
$custom: #f271f8;
$custom-light: #f9a0fb;
$custom-dark: #000000;
JSON
{
  "hex": "#f271f8",
  "rgb": {
    "r": 242,
    "g": 113,
    "b": 248
  },
  "hsl": {
    "h": 297.333,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.74912,
    "c": 0.22329,
    "h": 325.8
  },
  "luminance": 0.37465
}

Semantic roles & 50–950 ramp

primary
#F271F8
secondary
#D2F5D0
accent
#E6000A
background
#FFFAFF
surface
#FFF4FF
border
#D7CED7
text
#180F17
muted
#867F85

Preview Lab

Preview with #F271F8

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

Preview Lab → · Contrast checker → · Palette generator →

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