#F798F2#F798F2

#F798F2 is a light, vivid purple. Relative luminance 0.486; OKLCH L 80.6% C 0.159 H 328.8°. Best body text is #000000 at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#F798F2
RGBrgb(247, 152, 242)
HSLhsl(303, 86%, 78%)
HSVhsv(303, 38%, 97%)
CMYKcmyk(0%, 38.5%, 2%, 3.1%)
CIE-LABlab(75.23, 48.66, -30.35)
CIE-LCHlch(75.23, 57.35, 328.05°)
OKLaboklab(80.61% 0.1362 -0.0825)
OKLCHoklch(80.61% 0.159 328.8)
XYZxyz(65.6120, 48.6445, 89.9205)
Luminance0.4864 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F798F2 #98F79D
analogous
#CC98F7 #F798F2 #F798C2
triadic
#F798F2 #F2F798 #98F2F7
tetradic
#F798F2 #F7CC98 #98F79D #98C2F7
square
#F798F2 #F7CC98 #98F79D #98C2F7
split-complementary
#F798F2 #C2F798 #98F7CC
monochromatic
#EE26E4 #F35FEB #F798F2 #FBD1F9 #FDE3FB

Accessibility & contrast

On white

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

On black

10.73
#F798F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F798F2
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F798F2#FFFFFF#000000##000000
##F798F21.001.9610.7310.73
#FFFFFF1.961.0021.0021.00
#00000010.7321.001.001.00
##00000010.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#93B1F5
Deuteranopia (green-blind)
#ABBEEF
Tritanopia (blue-blind)
#FDA0BA
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #f798f2;
/* rgb */ color: rgb(247, 152, 242);
/* oklch */ color: oklch(80.6% 0.159 328.8);
Tailwind
colors: {
  custom: {
    50: '#fbb8f6',
    500: '#f798f2',
    950: '#000000',
  },
}
SCSS
$custom: #f798f2;
$custom-light: #fbb8f6;
$custom-dark: #000000;
JSON
{
  "hex": "#f798f2",
  "rgb": {
    "r": 247,
    "g": 152,
    "b": 242
  },
  "hsl": {
    "h": 303.158,
    "s": 85.586,
    "l": 78.235
  },
  "oklch": {
    "l": 0.80607,
    "c": 0.15922,
    "h": 328.8
  },
  "luminance": 0.48641
}

Semantic roles & 50–950 ramp

primary
#F798F2
secondary
#D6F5D8
accent
#E20F03
background
#FFFBFF
surface
#FFF6FE
border
#D7D0D6
text
#181117
muted
#868085

Preview Lab

Preview with #F798F2

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

Preview Lab → · Contrast checker → · Palette generator →

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