#F8E771#F8E771

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

Color values

HEX#F8E771
RGBrgb(248, 231, 113)
HSLhsl(52, 91%, 71%)
HSVhsv(52, 54%, 97%)
CMYKcmyk(0%, 6.9%, 54.4%, 2.7%)
CIE-LABlab(90.92, -8.74, 58.64)
CIE-LCHlch(90.92, 59.29, 98.48°)
OKLaboklab(91.87% -0.0271 0.1371)
OKLCHoklch(91.87% 0.14 101.2)
XYZxyz(70.2703, 78.3032, 27.0321)
Luminance0.7830 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8E771 #7182F8
analogous
#F8A371 #F8E771 #C6F871
triadic
#F8E771 #71F8E7 #E771F8
tetradic
#F8E771 #71F8A3 #7182F8 #F871C6
square
#F8E771 #71F8A3 #7182F8 #F871C6
split-complementary
#F8E771 #71C6F8 #A371F8
monochromatic
#E3C80B #F5DD37 #F8E771 #FBF1AB #FEFAE2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F8E771#FFFFFF#000000##000000
##F8E7711.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)
#F9E166
Deuteranopia (green-blind)
#FEE877
Tritanopia (blue-blind)
#FFD9CC
Achromatopsia (no color)
#E5E5E5

Design tokens & code

CSS
--color: #f8e771;
/* rgb */ color: rgb(248, 231, 113);
/* oklch */ color: oklch(91.9% 0.140 101.2);
Tailwind
colors: {
  custom: {
    50: '#fdee9d',
    500: '#f8e771',
    950: '#000000',
  },
}
SCSS
$custom: #f8e771;
$custom-light: #fdee9d;
$custom-dark: #000000;
JSON
{
  "hex": "#f8e771",
  "rgb": {
    "r": 248,
    "g": 231,
    "b": 113
  },
  "hsl": {
    "h": 52.444,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.9187,
    "c": 0.13972,
    "h": 101.2
  },
  "luminance": 0.78301
}

Semantic roles & 50–950 ramp

primary
#F8E771
secondary
#3A4DD3
accent
#1DE600
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#18160E
muted
#86847F

Preview Lab

Preview with #F8E771

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

Preview Lab → · Contrast checker → · Palette generator →

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