#F271EB#F271EB

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

Color values

HEX#F271EB
RGBrgb(242, 113, 235)
HSLhsl(303, 83%, 70%)
HSVhsv(303, 53%, 95%)
CMYKcmyk(0%, 53.3%, 2.9%, 5.1%)
CIE-LABlab(67.04, 64.97, -39.25)
CIE-LCHlch(67.04, 75.91, 328.86°)
OKLaboklab(74.29% 0.1831 -0.1076)
OKLCHoklch(74.29% 0.212 329.6)
XYZxyz(57.5179, 36.6893, 82.6333)
Luminance0.3669 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F271EB #71F278
analogous
#B971F2 #F271EB #F271AB
triadic
#F271EB #EBF271 #71EBF2
tetradic
#F271EB #F2B971 #71F278 #71ABF2
square
#F271EB #F2B971 #71F278 #71ABF2
split-complementary
#F271EB #ABF271 #71F2B9
monochromatic
#D514CB #ED39E3 #F271EB #F7A9F3 #FCE1FB

Accessibility & contrast

On white

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

On black

8.34
#F271EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F271EB
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F271EB#FFFFFF#000000##000000
##F271EB1.002.528.348.34
#FFFFFF2.521.0021.0021.00
#0000008.3421.001.001.00
##0000008.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6898EF
Deuteranopia (green-blind)
#90A9E7
Tritanopia (blue-blind)
#FA7DA4
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #f271eb;
/* rgb */ color: rgb(242, 113, 235);
/* oklch */ color: oklch(74.3% 0.212 329.6);
Tailwind
colors: {
  custom: {
    50: '#f99ff2',
    500: '#f271eb',
    950: '#000000',
  },
}
SCSS
$custom: #f271eb;
$custom-light: #f99ff2;
$custom-dark: #000000;
JSON
{
  "hex": "#f271eb",
  "rgb": {
    "r": 242,
    "g": 113,
    "b": 235
  },
  "hsl": {
    "h": 303.256,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.74294,
    "c": 0.21234,
    "h": 329.6
  },
  "luminance": 0.36686
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F271EB

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

Preview Lab → · Contrast checker → · Palette generator →

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