#F8F771#F8F771

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

Color values

HEX#F8F771
RGBrgb(248, 247, 113)
HSLhsl(60, 91%, 71%)
HSVhsv(60, 54%, 97%)
CMYKcmyk(0%, 0.4%, 54.4%, 2.7%)
CIE-LABlab(95.02, -16.60, 63.34)
CIE-LCHlch(95.02, 65.48, 104.69°)
OKLaboklab(95.13% -0.0496 0.1472)
OKLCHoklch(95.13% 0.155 108.6)
XYZxyz(74.9548, 87.6722, 28.5936)
Luminance0.8767 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F771 #7172F8
analogous
#F8B471 #F8F771 #B5F871
triadic
#F8F771 #71F8F7 #F771F8
tetradic
#F8F771 #71F8B4 #7172F8 #F871B5
square
#F8F771 #71F8B4 #7172F8 #F871B5
split-complementary
#F8F771 #71B5F8 #B471F8
monochromatic
#E3E20B #F5F437 #F8F771 #FBFAAB #FEFDE2

Accessibility & contrast

On white

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

On black

18.53
#F8F771 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F771
18.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F771#FFFFFF#000000##000000
##F8F7711.001.1318.5318.53
#FFFFFF1.131.0021.0021.00
#00000018.5321.001.001.00
##00000018.5321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f8f771;
/* rgb */ color: rgb(248, 247, 113);
/* oklch */ color: oklch(95.1% 0.155 108.6);
Tailwind
colors: {
  custom: {
    50: '#fdf99e',
    500: '#f8f771',
    950: '#000000',
  },
}
SCSS
$custom: #f8f771;
$custom-light: #fdf99e;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f771",
  "rgb": {
    "r": 248,
    "g": 247,
    "b": 113
  },
  "hsl": {
    "h": 59.556,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.95134,
    "c": 0.15531,
    "h": 108.6
  },
  "luminance": 0.8767
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F8F771

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

Preview Lab → · Contrast checker → · Palette generator →

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