#F271E4#F271E4

#F271E4 is a light, highly saturated purple. Relative luminance 0.363; OKLCH L 74.0% C 0.207 H 331.7°. Best body text is #000000 at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#F271E4
RGBrgb(242, 113, 228)
HSLhsl(307, 83%, 70%)
HSVhsv(307, 53%, 95%)
CMYKcmyk(0%, 53.3%, 5.8%, 5.1%)
CIE-LABlab(66.74, 63.83, -35.84)
CIE-LCHlch(66.74, 73.20, 330.68°)
OKLaboklab(73.97% 0.182 -0.0978)
OKLCHoklch(73.97% 0.207 331.7)
XYZxyz(56.5264, 36.2927, 77.4116)
Luminance0.3629 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F271E4 #71F27F
analogous
#C071F2 #F271E4 #F271A3
triadic
#F271E4 #E4F271 #71E4F2
tetradic
#F271E4 #F2C071 #71F27F #71A3F2
square
#F271E4 #F2C071 #71F27F #71A3F2
split-complementary
#F271E4 #A3F271 #71F2C0
monochromatic
#D514C0 #ED39D9 #F271E4 #F7A9EF #FCE1F9

Accessibility & contrast

On white

2.54
#F271E4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.26
#F271E4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F271E4
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F271E4#FFFFFF#000000##000000
##F271E41.002.548.268.26
#FFFFFF2.541.0021.0021.00
#0000008.2621.001.001.00
##0000008.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C97E8
Deuteranopia (green-blind)
#93A9E0
Tritanopia (blue-blind)
#FB7BA1
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #f271e4;
/* rgb */ color: rgb(242, 113, 228);
/* oklch */ color: oklch(74.0% 0.207 331.7);
Tailwind
colors: {
  custom: {
    50: '#f99fed',
    500: '#f271e4',
    950: '#000000',
  },
}
SCSS
$custom: #f271e4;
$custom-light: #f99fed;
$custom-dark: #000000;
JSON
{
  "hex": "#f271e4",
  "rgb": {
    "r": 242,
    "g": 113,
    "b": 228
  },
  "hsl": {
    "h": 306.512,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.73974,
    "c": 0.20666,
    "h": 331.7
  },
  "luminance": 0.36289
}

Semantic roles & 50–950 ramp

primary
#F271E4
secondary
#CDF2D1
accent
#E01D06
background
#FFFAFE
surface
#FFF4FD
border
#D7CED5
text
#180F16
muted
#867F84

Preview Lab

Preview with #F271E4

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

Preview Lab → · Contrast checker → · Palette generator →

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