#F8F071#F8F071

#F8F071 is a very light, vivid yellow. Relative luminance 0.835; OKLCH L 93.7% C 0.148 H 105.6°. Best body text is #000000 at 17.69:1 contrast (WCAG AA passes).

Color values

HEX#F8F071
RGBrgb(248, 240, 113)
HSLhsl(56, 91%, 71%)
HSVhsv(56, 54%, 97%)
CMYKcmyk(0%, 3.2%, 54.4%, 2.7%)
CIE-LABlab(93.22, -13.19, 61.29)
CIE-LCHlch(93.22, 62.69, 102.14°)
OKLaboklab(93.7% -0.0399 0.1428)
OKLCHoklch(93.7% 0.148 105.6)
XYZxyz(72.8543, 83.4712, 27.8934)
Luminance0.8347 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F071 #7179F8
analogous
#F8AC71 #F8F071 #BDF871
triadic
#F8F071 #71F8F0 #F071F8
tetradic
#F8F071 #71F8AC #7179F8 #F871BD
square
#F8F071 #71F8AC #7179F8 #F871BD
split-complementary
#F8F071 #71BDF8 #AC71F8
monochromatic
#E3D70B #F5EA37 #F8F071 #FBF6AB #FEFCE2

Accessibility & contrast

On white

1.19
#F8F071 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.69
#F8F071 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F071
17.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F071#FFFFFF#000000##000000
##F8F0711.001.1917.6917.69
#FFFFFF1.191.0021.0021.00
#00000017.6921.001.001.00
##00000017.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE864
Deuteranopia (green-blind)
#FFEE78
Tritanopia (blue-blind)
#FFE2D4
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #f8f071;
/* rgb */ color: rgb(248, 240, 113);
/* oklch */ color: oklch(93.7% 0.148 105.6);
Tailwind
colors: {
  custom: {
    50: '#fdf49d',
    500: '#f8f071',
    950: '#000000',
  },
}
SCSS
$custom: #f8f071;
$custom-light: #fdf49d;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f071",
  "rgb": {
    "r": 248,
    "g": 240,
    "b": 113
  },
  "hsl": {
    "h": 56.444,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.93699,
    "c": 0.14823,
    "h": 105.6
  },
  "luminance": 0.83469
}

Semantic roles & 50–950 ramp

primary
#F8F071
secondary
#3A43D3
accent
#0EE600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F8F071

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

Preview Lab → · Contrast checker → · Palette generator →

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