#F8F072#F8F072

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

Color values

HEX#F8F072
RGBrgb(248, 240, 114)
HSLhsl(56, 91%, 71%)
HSVhsv(56, 54%, 97%)
CMYKcmyk(0%, 3.2%, 54%, 2.7%)
CIE-LABlab(93.23, -13.11, 60.86)
CIE-LCHlch(93.23, 62.25, 102.16°)
OKLaboklab(93.71% -0.0396 0.1419)
OKLCHoklch(93.71% 0.147 105.6)
XYZxyz(72.9109, 83.4938, 28.1916)
Luminance0.8349 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F072 #727AF8
analogous
#F8AD72 #F8F072 #BDF872
triadic
#F8F072 #72F8F0 #F072F8
tetradic
#F8F072 #72F8AD #727AF8 #F872BD
square
#F8F072 #72F8AD #727AF8 #F872BD
split-complementary
#F8F072 #72BDF8 #AD72F8
monochromatic
#E4D70B #F5EA38 #F8F072 #FBF6AC #FEFCE2

Accessibility & contrast

On white

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

On black

17.70
#F8F072 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F072
17.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F072#FFFFFF#000000##000000
##F8F0721.001.1917.7017.70
#FFFFFF1.191.0021.0021.00
#00000017.7021.001.001.00
##00000017.7021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f8f072;
/* rgb */ color: rgb(248, 240, 114);
/* oklch */ color: oklch(93.7% 0.147 105.6);
Tailwind
colors: {
  custom: {
    50: '#fdf49e',
    500: '#f8f072',
    950: '#000000',
  },
}
SCSS
$custom: #f8f072;
$custom-light: #fdf49e;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f072",
  "rgb": {
    "r": 248,
    "g": 240,
    "b": 114
  },
  "hsl": {
    "h": 56.418,
    "s": 90.541,
    "l": 70.98
  },
  "oklch": {
    "l": 0.9371,
    "c": 0.14735,
    "h": 105.6
  },
  "luminance": 0.83492
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F8F072

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

Preview Lab → · Contrast checker → · Palette generator →

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