#F797DC#F797DC

#F797DC is a light, vivid pink. Relative luminance 0.471; OKLCH L 79.6% C 0.142 H 338.1°. Best body text is #000000 at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#F797DC
RGBrgb(247, 151, 220)
HSLhsl(317, 86%, 78%)
HSVhsv(317, 39%, 97%)
CMYKcmyk(0%, 38.9%, 10.9%, 3.1%)
CIE-LABlab(74.24, 45.46, -19.86)
CIE-LCHlch(74.24, 49.61, 336.41°)
OKLaboklab(79.6% 0.1321 -0.0531)
OKLCHoklch(79.6% 0.142 338.1)
XYZxyz(62.3427, 47.0782, 73.4995)
Luminance0.4708 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F797DC #97F7B2
analogous
#E297F7 #F797DC #F797AC
triadic
#F797DC #DCF797 #97DCF7
tetradic
#F797DC #F7E297 #97F7B2 #97ACF7
square
#F797DC #F7E297 #97F7B2 #97ACF7
split-complementary
#F797DC #ACF797 #97F7E2
monochromatic
#EE25B6 #F35EC9 #F797DC #FBD0EF #FDE3F5

Accessibility & contrast

On white

2.02
#F797DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.42
#F797DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F797DC
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F797DC#FFFFFF#000000##000000
##F797DC1.002.0210.4210.42
#FFFFFF2.021.0021.0021.00
#00000010.4221.001.001.00
##00000010.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#99AEDF
Deuteranopia (green-blind)
#B2BCD9
Tritanopia (blue-blind)
#FF99B0
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #f797dc;
/* rgb */ color: rgb(247, 151, 220);
/* oklch */ color: oklch(79.6% 0.142 338.1);
Tailwind
colors: {
  custom: {
    50: '#fbb7e7',
    500: '#f797dc',
    950: '#000000',
  },
}
SCSS
$custom: #f797dc;
$custom-light: #fbb7e7;
$custom-dark: #000000;
JSON
{
  "hex": "#f797dc",
  "rgb": {
    "r": 247,
    "g": 151,
    "b": 220
  },
  "hsl": {
    "h": 316.875,
    "s": 85.714,
    "l": 78.039
  },
  "oklch": {
    "l": 0.79603,
    "c": 0.14236,
    "h": 338.1
  },
  "luminance": 0.47075
}

Semantic roles & 50–950 ramp

primary
#F797DC
secondary
#D6F5DF
accent
#E24203
background
#FFFBFE
surface
#FFF6FC
border
#D7D0D5
text
#181116
muted
#868084

Preview Lab

Preview with #F797DC

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

Preview Lab → · Contrast checker → · Palette generator →

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