#F02EC8#F02EC8

#F02EC8 is a light, highly saturated pink. Relative luminance 0.246; OKLCH L 66.2% C 0.265 H 338.5°. Best body text is #000000 at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#F02EC8
RGBrgb(240, 46, 200)
HSLhsl(312, 87%, 56%)
HSVhsv(312, 81%, 94%)
CMYKcmyk(0%, 80.8%, 16.7%, 5.9%)
CIE-LABlab(56.74, 82.81, -35.68)
CIE-LCHlch(56.74, 90.17, 336.69°)
OKLaboklab(66.23% 0.2462 -0.0969)
OKLCHoklch(66.23% 0.265 338.5)
XYZxyz(47.3387, 24.6542, 56.8980)
Luminance0.2465 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F02EC8 #2EF056
analogous
#B72EF0 #F02EC8 #F02E67
triadic
#F02EC8 #C8F02E #2EC8F0
tetradic
#F02EC8 #F0B72E #2EF056 #2E67F0
square
#F02EC8 #F0B72E #2EF056 #2E67F0
split-complementary
#F02EC8 #67F02E #2EF0B7
monochromatic
#990B7B #D20FAA #F02EC8 #F467D7 #F8A0E6

Accessibility & contrast

On white

3.54
#F02EC8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.93
#F02EC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #F02EC8
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F02EC8#FFFFFF#000000##000000
##F02EC81.003.545.935.93
#FFFFFF3.541.0021.0021.00
#0000005.9321.001.001.00
##0000005.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B75CC
Deuteranopia (green-blind)
#7F93C4
Tritanopia (blue-blind)
#FE3A7B
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #f02ec8;
/* rgb */ color: rgb(240, 46, 200);
/* oklch */ color: oklch(66.2% 0.265 338.5);
Tailwind
colors: {
  custom: {
    50: '#fa7fd9',
    500: '#f02ec8',
    950: '#000000',
  },
}
SCSS
$custom: #f02ec8;
$custom-light: #fa7fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#f02ec8",
  "rgb": {
    "r": 240,
    "g": 46,
    "b": 200
  },
  "hsl": {
    "h": 312.371,
    "s": 86.607,
    "l": 56.078
  },
  "oklch": {
    "l": 0.66233,
    "c": 0.26456,
    "h": 338.5
  },
  "luminance": 0.24649
}

Semantic roles & 50–950 ramp

primary
#F02EC8
secondary
#95E5A5
accent
#FD562B
background
#FFF8FD
surface
#FFF0FA
border
#D7CBD3
text
#180C14
muted
#867D83

Preview Lab

Preview with #F02EC8

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

Preview Lab → · Contrast checker → · Palette generator →

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