#F8F07A#F8F07A

#F8F07A is a very light, vivid yellow. Relative luminance 0.837; OKLCH L 93.8% C 0.140 H 105.3°. Best body text is #000000 at 17.74:1 contrast (WCAG AA passes).

Color values

HEX#F8F07A
RGBrgb(248, 240, 122)
HSLhsl(56, 90%, 73%)
HSVhsv(56, 51%, 97%)
CMYKcmyk(0%, 3.2%, 50.8%, 2.7%)
CIE-LABlab(93.31, -12.48, 57.33)
CIE-LCHlch(93.31, 58.67, 102.28°)
OKLaboklab(93.8% -0.0369 0.1351)
OKLCHoklch(93.8% 0.14 105.3)
XYZxyz(73.3863, 83.6840, 30.6955)
Luminance0.8368 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F07A #7A82F8
analogous
#F8B17A #F8F07A #C1F87A
triadic
#F8F07A #7AF8F0 #F07AF8
tetradic
#F8F07A #7AF8B1 #7A82F8 #F87AC1
square
#F8F07A #7AF8B1 #7A82F8 #F87AC1
split-complementary
#F8F07A #7AC1F8 #B17AF8
monochromatic
#EBDD0C #F5E940 #F8F07A #FBF7B4 #FDFCE2

Accessibility & contrast

On white

1.18
#F8F07A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.74
#F8F07A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F07A
17.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F07A#FFFFFF#000000##000000
##F8F07A1.001.1817.7417.74
#FFFFFF1.181.0021.0021.00
#00000017.7421.001.001.00
##00000017.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE96F
Deuteranopia (green-blind)
#FFEE80
Tritanopia (blue-blind)
#FFE3D5
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #f8f07a;
/* rgb */ color: rgb(248, 240, 122);
/* oklch */ color: oklch(93.8% 0.140 105.3);
Tailwind
colors: {
  custom: {
    50: '#fdf4a3',
    500: '#f8f07a',
    950: '#000000',
  },
}
SCSS
$custom: #f8f07a;
$custom-light: #fdf4a3;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f07a",
  "rgb": {
    "r": 248,
    "g": 240,
    "b": 122
  },
  "hsl": {
    "h": 56.19,
    "s": 90,
    "l": 72.549
  },
  "oklch": {
    "l": 0.93803,
    "c": 0.14004,
    "h": 105.3
  },
  "luminance": 0.83682
}

Semantic roles & 50–950 ramp

primary
#F8F07A
secondary
#424BD4
accent
#0FE600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18170F
muted
#868580

Preview Lab

Preview with #F8F07A

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

Preview Lab → · Contrast checker → · Palette generator →

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