#F798EC#F798EC

#F798EC is a light, vivid purple. Relative luminance 0.483; OKLCH L 80.4% C 0.154 H 331.2°. Best body text is #000000 at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#F798EC
RGBrgb(247, 152, 236)
HSLhsl(307, 86%, 78%)
HSVhsv(307, 38%, 97%)
CMYKcmyk(0%, 38.5%, 4.5%, 3.1%)
CIE-LABlab(75.01, 47.62, -27.43)
CIE-LCHlch(75.01, 54.96, 330.06°)
OKLaboklab(80.37% 0.1348 -0.0742)
OKLCHoklch(80.37% 0.154 331.2)
XYZxyz(64.7256, 48.2899, 85.2522)
Luminance0.4829 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F798EC #98F7A3
analogous
#D298F7 #F798EC #F798BC
triadic
#F798EC #ECF798 #98ECF7
tetradic
#F798EC #F7D298 #98F7A3 #98BCF7
square
#F798EC #F7D298 #98F7A3 #98BCF7
split-complementary
#F798EC #BCF798 #98F7D2
monochromatic
#EE26D7 #F35FE2 #F798EC #FBD1F6 #FDE3FA

Accessibility & contrast

On white

1.97
#F798EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.66
#F798EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F798EC
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F798EC#FFFFFF#000000##000000
##F798EC1.001.9710.6610.66
#FFFFFF1.971.0021.0021.00
#00000010.6621.001.001.00
##00000010.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#95B0EF
Deuteranopia (green-blind)
#AEBDE9
Tritanopia (blue-blind)
#FE9EB7
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #f798ec;
/* rgb */ color: rgb(247, 152, 236);
/* oklch */ color: oklch(80.4% 0.154 331.2);
Tailwind
colors: {
  custom: {
    50: '#fbb8f2',
    500: '#f798ec',
    950: '#000000',
  },
}
SCSS
$custom: #f798ec;
$custom-light: #fbb8f2;
$custom-dark: #000000;
JSON
{
  "hex": "#f798ec",
  "rgb": {
    "r": 247,
    "g": 152,
    "b": 236
  },
  "hsl": {
    "h": 306.947,
    "s": 85.586,
    "l": 78.235
  },
  "oklch": {
    "l": 0.80367,
    "c": 0.15387,
    "h": 331.2
  },
  "luminance": 0.48287
}

Semantic roles & 50–950 ramp

primary
#F798EC
secondary
#D6F5DA
accent
#E21D03
background
#FFFBFE
surface
#FFF6FD
border
#D7D0D5
text
#181117
muted
#868085

Preview Lab

Preview with #F798EC

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

Preview Lab → · Contrast checker → · Palette generator →

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