#F797FE#F797FE

#F797FE is a light, vivid purple. Relative luminance 0.491; OKLCH L 81.0% C 0.172 H 324.6°. Best body text is #000000 at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#F797FE
RGBrgb(247, 151, 254)
HSLhsl(296, 98%, 79%)
HSVhsv(296, 41%, 100%)
CMYKcmyk(2.8%, 40.6%, 0%, 0.4%)
CIE-LABlab(75.49, 51.31, -36.45)
CIE-LCHlch(75.49, 62.94, 324.61°)
OKLaboklab(80.96% 0.1402 -0.0998)
OKLCHoklch(80.96% 0.172 324.6)
XYZxyz(67.3121, 49.0660, 99.6717)
Luminance0.4906 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F797FE #9EFE97
analogous
#C497FE #F797FE #FE97D2
triadic
#F797FE #FEF797 #97FEF7
tetradic
#F797FE #FEC497 #9EFE97 #97D2FE
square
#F797FE #FEC497 #9EFE97 #97D2FE
split-complementary
#F797FE #D2FE97 #97FEC4
monochromatic
#EE1EFD #F25AFD #F797FE #FCD4FF #FDE1FF

Accessibility & contrast

On white

1.94
#F797FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.81
#F797FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F797FE
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F797FE#FFFFFF#000000##000000
##F797FE1.001.9410.8110.81
#FFFFFF1.941.0021.0021.00
#00000010.8121.001.001.00
##00000010.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8DB3FF
Deuteranopia (green-blind)
#A6BEFB
Tritanopia (blue-blind)
#FBA2BF
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #f797fe;
/* rgb */ color: rgb(247, 151, 254);
/* oklch */ color: oklch(81.0% 0.172 324.6);
Tailwind
colors: {
  custom: {
    50: '#fbb8ff',
    500: '#f797fe',
    950: '#000000',
  },
}
SCSS
$custom: #f797fe;
$custom-light: #fbb8ff;
$custom-dark: #000000;
JSON
{
  "hex": "#f797fe",
  "rgb": {
    "r": 247,
    "g": 151,
    "b": 254
  },
  "hsl": {
    "h": 295.922,
    "s": 98.095,
    "l": 79.412
  },
  "oklch": {
    "l": 0.80957,
    "c": 0.17208,
    "h": 324.6
  },
  "luminance": 0.49063
}

Semantic roles & 50–950 ramp

primary
#F797FE
secondary
#D6F7D4
accent
#E60010
background
#FFFBFF
surface
#FFF6FF
border
#D7D0D7
text
#181118
muted
#868086

Preview Lab

Preview with #F797FE

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

Preview Lab → · Contrast checker → · Palette generator →

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