#F271EC#F271EC

#F271EC is a light, highly saturated purple. Relative luminance 0.367; OKLCH L 74.3% C 0.213 H 329.3°. Best body text is #000000 at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#F271EC
RGBrgb(242, 113, 236)
HSLhsl(303, 83%, 70%)
HSVhsv(303, 53%, 95%)
CMYKcmyk(0%, 53.3%, 2.5%, 5.1%)
CIE-LABlab(67.09, 65.14, -39.74)
CIE-LCHlch(67.09, 76.30, 328.62°)
OKLaboklab(74.34% 0.1832 -0.109)
OKLCHoklch(74.34% 0.213 329.3)
XYZxyz(57.6628, 36.7472, 83.3964)
Luminance0.3674 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F271EC #71F277
analogous
#B871F2 #F271EC #F271AB
triadic
#F271EC #ECF271 #71ECF2
tetradic
#F271EC #F2B871 #71F277 #71ABF2
square
#F271EC #F2B871 #71F277 #71ABF2
split-complementary
#F271EC #ABF271 #71F2B8
monochromatic
#D514CC #ED39E4 #F271EC #F7A9F4 #FCE1FB

Accessibility & contrast

On white

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

On black

8.35
#F271EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F271EC
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F271EC#FFFFFF#000000##000000
##F271EC1.002.528.358.35
#FFFFFF2.521.0021.0021.00
#0000008.3521.001.001.00
##0000008.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6898F0
Deuteranopia (green-blind)
#90AAE8
Tritanopia (blue-blind)
#FA7EA4
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #f271ec;
/* rgb */ color: rgb(242, 113, 236);
/* oklch */ color: oklch(74.3% 0.213 329.3);
Tailwind
colors: {
  custom: {
    50: '#f99ff2',
    500: '#f271ec',
    950: '#000000',
  },
}
SCSS
$custom: #f271ec;
$custom-light: #f99ff2;
$custom-dark: #000000;
JSON
{
  "hex": "#f271ec",
  "rgb": {
    "r": 242,
    "g": 113,
    "b": 236
  },
  "hsl": {
    "h": 302.791,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.7434,
    "c": 0.21317,
    "h": 329.3
  },
  "luminance": 0.36744
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F271EC

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

Preview Lab → · Contrast checker → · Palette generator →

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