#F271EF#F271EF

#F271EF is a light, highly saturated purple. Relative luminance 0.369; OKLCH L 74.5% C 0.216 H 328.4°. Best body text is #000000 at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#F271EF
RGBrgb(242, 113, 239)
HSLhsl(301, 83%, 70%)
HSVhsv(301, 53%, 95%)
CMYKcmyk(0%, 53.3%, 1.2%, 5.1%)
CIE-LABlab(67.22, 65.64, -41.19)
CIE-LCHlch(67.22, 77.49, 327.90°)
OKLaboklab(74.48% 0.1836 -0.1131)
OKLCHoklch(74.48% 0.216 328.4)
XYZxyz(58.1023, 36.9230, 85.7111)
Luminance0.3692 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F271EF #71F274
analogous
#B471F2 #F271EF #F271AF
triadic
#F271EF #EFF271 #71EFF2
tetradic
#F271EF #F2B471 #71F274 #71AFF2
square
#F271EF #F2B471 #71F274 #71AFF2
split-complementary
#F271EF #AFF271 #71F2B4
monochromatic
#D514D1 #ED39E9 #F271EF #F7A9F5 #FCE1FC

Accessibility & contrast

On white

2.50
#F271EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.38
#F271EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F271EF
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F271EF#FFFFFF#000000##000000
##F271EF1.002.508.388.38
#FFFFFF2.501.0021.0021.00
#0000008.3821.001.001.00
##0000008.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6699F3
Deuteranopia (green-blind)
#8EAAEB
Tritanopia (blue-blind)
#F97FA6
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #f271ef;
/* rgb */ color: rgb(242, 113, 239);
/* oklch */ color: oklch(74.5% 0.216 328.4);
Tailwind
colors: {
  custom: {
    50: '#f99ff4',
    500: '#f271ef',
    950: '#000000',
  },
}
SCSS
$custom: #f271ef;
$custom-light: #f99ff4;
$custom-dark: #000000;
JSON
{
  "hex": "#f271ef",
  "rgb": {
    "r": 242,
    "g": 113,
    "b": 239
  },
  "hsl": {
    "h": 301.395,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.7448,
    "c": 0.21567,
    "h": 328.4
  },
  "luminance": 0.36919
}

Semantic roles & 50–950 ramp

primary
#F271EF
secondary
#CDF2CE
accent
#E00B06
background
#FFFAFE
surface
#FFF4FD
border
#D7CED5
text
#180F17
muted
#867F85

Preview Lab

Preview with #F271EF

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

Preview Lab → · Contrast checker → · Palette generator →

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