#F798EF#F798EF

#F798EF is a light, vivid purple. Relative luminance 0.485; OKLCH L 80.5% C 0.157 H 330.0°. Best body text is #000000 at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#F798EF
RGBrgb(247, 152, 239)
HSLhsl(305, 86%, 78%)
HSVhsv(305, 38%, 97%)
CMYKcmyk(0%, 38.5%, 3.2%, 3.1%)
CIE-LABlab(75.12, 48.14, -28.89)
CIE-LCHlch(75.12, 56.14, 329.03°)
OKLaboklab(80.49% 0.1355 -0.0784)
OKLCHoklch(80.49% 0.157 330)
XYZxyz(65.1651, 48.4657, 87.5669)
Luminance0.4846 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F798EF #98F7A0
analogous
#CF98F7 #F798EF #F798BF
triadic
#F798EF #EFF798 #98EFF7
tetradic
#F798EF #F7CF98 #98F7A0 #98BFF7
square
#F798EF #F7CF98 #98F7A0 #98BFF7
split-complementary
#F798EF #BFF798 #98F7CF
monochromatic
#EE26DD #F35FE6 #F798EF #FBD1F8 #FDE3FB

Accessibility & contrast

On white

1.96
#F798EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.69
#F798EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F798EF
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F798EF#FFFFFF#000000##000000
##F798EF1.001.9610.6910.69
#FFFFFF1.961.0021.0021.00
#00000010.6921.001.001.00
##00000010.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#94B1F2
Deuteranopia (green-blind)
#ACBEEC
Tritanopia (blue-blind)
#FE9FB9
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #f798ef;
/* rgb */ color: rgb(247, 152, 239);
/* oklch */ color: oklch(80.5% 0.157 330.0);
Tailwind
colors: {
  custom: {
    50: '#fbb8f4',
    500: '#f798ef',
    950: '#000000',
  },
}
SCSS
$custom: #f798ef;
$custom-light: #fbb8f4;
$custom-dark: #000000;
JSON
{
  "hex": "#f798ef",
  "rgb": {
    "r": 247,
    "g": 152,
    "b": 239
  },
  "hsl": {
    "h": 305.053,
    "s": 85.586,
    "l": 78.235
  },
  "oklch": {
    "l": 0.80486,
    "c": 0.15653,
    "h": 330
  },
  "luminance": 0.48463
}

Semantic roles & 50–950 ramp

primary
#F798EF
secondary
#D6F5D9
accent
#E21603
background
#FFFBFE
surface
#FFF6FD
border
#D7D0D5
text
#181117
muted
#868085

Preview Lab

Preview with #F798EF

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

Preview Lab → · Contrast checker → · Palette generator →

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