#F8F471#F8F471

#F8F471 is a very light, vivid yellow. Relative luminance 0.859; OKLCH L 94.5% C 0.152 H 107.4°. Best body text is #000000 at 18.17:1 contrast (WCAG AA passes).

Color values

HEX#F8F471
RGBrgb(248, 244, 113)
HSLhsl(58, 91%, 71%)
HSVhsv(58, 54%, 97%)
CMYKcmyk(0%, 1.6%, 54.4%, 2.7%)
CIE-LABlab(94.25, -15.14, 62.46)
CIE-LCHlch(94.25, 64.27, 103.63°)
OKLaboklab(94.52% -0.0455 0.1453)
OKLCHoklch(94.52% 0.152 107.4)
XYZxyz(74.0448, 85.8522, 28.2903)
Luminance0.8585 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F471 #7175F8
analogous
#F8B071 #F8F471 #B8F871
triadic
#F8F471 #71F8F4 #F471F8
tetradic
#F8F471 #71F8B0 #7175F8 #F871B8
square
#F8F471 #71F8B0 #7175F8 #F871B8
split-complementary
#F8F471 #71B8F8 #B071F8
monochromatic
#E3DD0B #F5EF37 #F8F471 #FBF9AB #FEFDE2

Accessibility & contrast

On white

1.16
#F8F471 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.17
#F8F471 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F471
18.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F471#FFFFFF#000000##000000
##F8F4711.001.1618.1718.17
#FFFFFF1.161.0021.0021.00
#00000018.1721.001.001.00
##00000018.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC64
Deuteranopia (green-blind)
#FFF178
Tritanopia (blue-blind)
#FFE6D7
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #f8f471;
/* rgb */ color: rgb(248, 244, 113);
/* oklch */ color: oklch(94.5% 0.152 107.4);
Tailwind
colors: {
  custom: {
    50: '#fdf79e',
    500: '#f8f471',
    950: '#000000',
  },
}
SCSS
$custom: #f8f471;
$custom-light: #fdf79e;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f471",
  "rgb": {
    "r": 248,
    "g": 244,
    "b": 113
  },
  "hsl": {
    "h": 58.222,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.94518,
    "c": 0.15224,
    "h": 107.4
  },
  "luminance": 0.8585
}

Semantic roles & 50–950 ramp

primary
#F8F471
secondary
#3A3FD3
accent
#07E600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F8F471

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

Preview Lab → · Contrast checker → · Palette generator →

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