#F271EA#F271EA

#F271EA is a light, highly saturated purple. Relative luminance 0.366; OKLCH L 74.2% C 0.212 H 329.9°. Best body text is #000000 at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#F271EA
RGBrgb(242, 113, 234)
HSLhsl(304, 83%, 70%)
HSVhsv(304, 53%, 95%)
CMYKcmyk(0%, 53.3%, 3.3%, 5.1%)
CIE-LABlab(67.00, 64.81, -38.77)
CIE-LCHlch(67.00, 75.52, 329.11°)
OKLaboklab(74.25% 0.1829 -0.1062)
OKLCHoklch(74.25% 0.212 329.9)
XYZxyz(57.3738, 36.6316, 81.8746)
Luminance0.3663 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F271EA #71F279
analogous
#BA71F2 #F271EA #F271AA
triadic
#F271EA #EAF271 #71EAF2
tetradic
#F271EA #F2BA71 #71F279 #71AAF2
square
#F271EA #F2BA71 #71F279 #71AAF2
split-complementary
#F271EA #AAF271 #71F2BA
monochromatic
#D514C9 #ED39E2 #F271EA #F7A9F2 #FCE1FB

Accessibility & contrast

On white

2.52
#F271EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.33
#F271EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F271EA
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F271EA#FFFFFF#000000##000000
##F271EA1.002.528.338.33
#FFFFFF2.521.0021.0021.00
#0000008.3321.001.001.00
##0000008.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6998EE
Deuteranopia (green-blind)
#90A9E6
Tritanopia (blue-blind)
#FA7DA3
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #f271ea;
/* rgb */ color: rgb(242, 113, 234);
/* oklch */ color: oklch(74.2% 0.212 329.9);
Tailwind
colors: {
  custom: {
    50: '#f99ff1',
    500: '#f271ea',
    950: '#000000',
  },
}
SCSS
$custom: #f271ea;
$custom-light: #f99ff1;
$custom-dark: #000000;
JSON
{
  "hex": "#f271ea",
  "rgb": {
    "r": 242,
    "g": 113,
    "b": 234
  },
  "hsl": {
    "h": 303.721,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.74247,
    "c": 0.21152,
    "h": 329.9
  },
  "luminance": 0.36628
}

Semantic roles & 50–950 ramp

primary
#F271EA
secondary
#CDF2CF
accent
#E01306
background
#FFFAFE
surface
#FFF4FD
border
#D7CED5
text
#180F17
muted
#867F85

Preview Lab

Preview with #F271EA

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

Preview Lab → · Contrast checker → · Palette generator →

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