#F8F772#F8F772

#F8F772 is a very light, vivid yellow. Relative luminance 0.877; OKLCH L 95.1% C 0.154 H 108.6°. Best body text is #000000 at 18.54:1 contrast (WCAG AA passes).

Color values

HEX#F8F772
RGBrgb(248, 247, 114)
HSLhsl(60, 91%, 71%)
HSVhsv(60, 54%, 97%)
CMYKcmyk(0%, 0.4%, 54%, 2.7%)
CIE-LABlab(95.03, -16.53, 62.92)
CIE-LCHlch(95.03, 65.05, 104.72°)
OKLaboklab(95.15% -0.0493 0.1464)
OKLCHoklch(95.15% 0.154 108.6)
XYZxyz(75.0114, 87.6949, 28.8917)
Luminance0.8769 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F772 #7273F8
analogous
#F8B472 #F8F772 #B6F872
triadic
#F8F772 #72F8F7 #F772F8
tetradic
#F8F772 #72F8B4 #7273F8 #F872B6
square
#F8F772 #72F8B4 #7273F8 #F872B6
split-complementary
#F8F772 #72B6F8 #B472F8
monochromatic
#E4E30B #F5F438 #F8F772 #FBFAAC #FEFDE2

Accessibility & contrast

On white

1.13
#F8F772 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.54
#F8F772 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F772
18.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F772#FFFFFF#000000##000000
##F8F7721.001.1318.5418.54
#FFFFFF1.131.0021.0021.00
#00000018.5421.001.001.00
##00000018.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEE64
Deuteranopia (green-blind)
#FFF379
Tritanopia (blue-blind)
#FFE9DA
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #f8f772;
/* rgb */ color: rgb(248, 247, 114);
/* oklch */ color: oklch(95.1% 0.154 108.6);
Tailwind
colors: {
  custom: {
    50: '#fdf99e',
    500: '#f8f772',
    950: '#000000',
  },
}
SCSS
$custom: #f8f772;
$custom-light: #fdf99e;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f772",
  "rgb": {
    "r": 248,
    "g": 247,
    "b": 114
  },
  "hsl": {
    "h": 59.552,
    "s": 90.541,
    "l": 70.98
  },
  "oklch": {
    "l": 0.95145,
    "c": 0.15445,
    "h": 108.6
  },
  "luminance": 0.87693
}

Semantic roles & 50–950 ramp

primary
#F8F772
secondary
#3B3CD3
accent
#02E600
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F8F772

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

Preview Lab → · Contrast checker → · Palette generator →

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