#F28EC7#F28EC7

#F28EC7 is a light, vivid pink. Relative luminance 0.423; OKLCH L 76.9% C 0.138 H 345.6°. Best body text is #000000 at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#F28EC7
RGBrgb(242, 142, 199)
HSLhsl(326, 79%, 75%)
HSVhsv(326, 41%, 95%)
CMYKcmyk(0%, 41.3%, 17.8%, 5.1%)
CIE-LABlab(71.11, 45.18, -13.06)
CIE-LCHlch(71.11, 47.03, 343.88°)
OKLaboklab(76.89% 0.1341 -0.0344)
OKLCHoklch(76.89% 0.138 345.6)
XYZxyz(56.6005, 42.3505, 59.2150)
Luminance0.4235 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F28EC7 #8EF2B9
analogous
#EB8EF2 #F28EC7 #F28E95
triadic
#F28EC7 #C7F28E #8EC7F2
tetradic
#F28EC7 #F2EB8E #8EF2B9 #8E95F2
square
#F28EC7 #F2EB8E #8EF2B9 #8E95F2
split-complementary
#F28EC7 #95F28E #8EF2EB
monochromatic
#E52091 #EC57AC #F28EC7 #F8C5E2 #FCE4F1

Accessibility & contrast

On white

2.22
#F28EC7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.47
#F28EC7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F28EC7
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F28EC7#FFFFFF#000000##000000
##F28EC71.002.229.479.47
#FFFFFF2.221.0021.0021.00
#0000009.4721.001.001.00
##0000009.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#96A4C9
Deuteranopia (green-blind)
#AFB4C4
Tritanopia (blue-blind)
#FE8DA3
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #f28ec7;
/* rgb */ color: rgb(242, 142, 199);
/* oklch */ color: oklch(76.9% 0.138 345.6);
Tailwind
colors: {
  custom: {
    50: '#f8b1d8',
    500: '#f28ec7',
    950: '#000000',
  },
}
SCSS
$custom: #f28ec7;
$custom-light: #f8b1d8;
$custom-dark: #000000;
JSON
{
  "hex": "#f28ec7",
  "rgb": {
    "r": 242,
    "g": 142,
    "b": 199
  },
  "hsl": {
    "h": 325.8,
    "s": 79.365,
    "l": 75.294
  },
  "oklch": {
    "l": 0.76885,
    "c": 0.1384,
    "h": 345.6
  },
  "luminance": 0.42347
}

Semantic roles & 50–950 ramp

primary
#F28EC7
secondary
#D7F4E4
accent
#DC640A
background
#FFFBFD
surface
#FFF6FA
border
#D7D0D3
text
#171114
muted
#858083

Preview Lab

Preview with #F28EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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