#F8E772#F8E772

#F8E772 is a very light, vivid yellow. Relative luminance 0.783; OKLCH L 91.9% C 0.139 H 101.1°. Best body text is #000000 at 16.66:1 contrast (WCAG AA passes).

Color values

HEX#F8E772
RGBrgb(248, 231, 114)
HSLhsl(52, 91%, 71%)
HSVhsv(52, 54%, 97%)
CMYKcmyk(0%, 6.9%, 54%, 2.7%)
CIE-LABlab(90.93, -8.66, 58.20)
CIE-LCHlch(90.93, 58.84, 98.47°)
OKLaboklab(91.88% -0.0268 0.1362)
OKLCHoklch(91.88% 0.139 101.1)
XYZxyz(70.3269, 78.3258, 27.3302)
Luminance0.7832 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8E772 #7283F8
analogous
#F8A472 #F8E772 #C6F872
triadic
#F8E772 #72F8E7 #E772F8
tetradic
#F8E772 #72F8A4 #7283F8 #F872C6
square
#F8E772 #72F8A4 #7283F8 #F872C6
split-complementary
#F8E772 #72C6F8 #A472F8
monochromatic
#E4C90B #F5DD38 #F8E772 #FBF1AC #FEFAE2

Accessibility & contrast

On white

1.26
#F8E772 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.66
#F8E772 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8E772
16.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8E772#FFFFFF#000000##000000
##F8E7721.001.2616.6616.66
#FFFFFF1.261.0021.0021.00
#00000016.6621.001.001.00
##00000016.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#F9E167
Deuteranopia (green-blind)
#FEE878
Tritanopia (blue-blind)
#FFD9CD
Achromatopsia (no color)
#E5E5E5

Design tokens & code

CSS
--color: #f8e772;
/* rgb */ color: rgb(248, 231, 114);
/* oklch */ color: oklch(91.9% 0.139 101.1);
Tailwind
colors: {
  custom: {
    50: '#fdee9e',
    500: '#f8e772',
    950: '#000000',
  },
}
SCSS
$custom: #f8e772;
$custom-light: #fdee9e;
$custom-dark: #000000;
JSON
{
  "hex": "#f8e772",
  "rgb": {
    "r": 248,
    "g": 231,
    "b": 114
  },
  "hsl": {
    "h": 52.388,
    "s": 90.541,
    "l": 70.98
  },
  "oklch": {
    "l": 0.91882,
    "c": 0.13882,
    "h": 101.1
  },
  "luminance": 0.78323
}

Semantic roles & 50–950 ramp

primary
#F8E772
secondary
#3B4ED3
accent
#1DE600
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#18160F
muted
#868480

Preview Lab

Preview with #F8E772

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

Preview Lab → · Contrast checker → · Palette generator →

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