#F8EF7A#F8EF7A

#F8EF7A is a very light, vivid yellow. Relative luminance 0.831; OKLCH L 93.6% C 0.139 H 104.8°. Best body text is #000000 at 17.62:1 contrast (WCAG AA passes).

Color values

HEX#F8EF7A
RGBrgb(248, 239, 122)
HSLhsl(56, 90%, 73%)
HSVhsv(56, 51%, 97%)
CMYKcmyk(0%, 3.6%, 50.8%, 2.7%)
CIE-LABlab(93.06, -11.98, 57.03)
CIE-LCHlch(93.06, 58.27, 101.87°)
OKLaboklab(93.6% -0.0355 0.1344)
OKLCHoklch(93.6% 0.139 104.8)
XYZxyz(73.0928, 83.0968, 30.5976)
Luminance0.8309 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8EF7A #7A83F8
analogous
#F8B07A #F8EF7A #C2F87A
triadic
#F8EF7A #7AF8EF #EF7AF8
tetradic
#F8EF7A #7AF8B0 #7A83F8 #F87AC2
square
#F8EF7A #7AF8B0 #7A83F8 #F87AC2
split-complementary
#F8EF7A #7AC2F8 #B07AF8
monochromatic
#EBDB0C #F5E840 #F8EF7A #FBF6B4 #FDFCE2

Accessibility & contrast

On white

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

On black

17.62
#F8EF7A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8EF7A
17.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8EF7A#FFFFFF#000000##000000
##F8EF7A1.001.1917.6217.62
#FFFFFF1.191.0021.0021.00
#00000017.6221.001.001.00
##00000017.6221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f8ef7a;
/* rgb */ color: rgb(248, 239, 122);
/* oklch */ color: oklch(93.6% 0.139 104.8);
Tailwind
colors: {
  custom: {
    50: '#fdf4a3',
    500: '#f8ef7a',
    950: '#000000',
  },
}
SCSS
$custom: #f8ef7a;
$custom-light: #fdf4a3;
$custom-dark: #000000;
JSON
{
  "hex": "#f8ef7a",
  "rgb": {
    "r": 248,
    "g": 239,
    "b": 122
  },
  "hsl": {
    "h": 55.714,
    "s": 90,
    "l": 72.549
  },
  "oklch": {
    "l": 0.93599,
    "c": 0.13905,
    "h": 104.8
  },
  "luminance": 0.83095
}

Semantic roles & 50–950 ramp

primary
#F8EF7A
secondary
#424DD4
accent
#10E600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18170F
muted
#868580

Preview Lab

Preview with #F8EF7A

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

Preview Lab → · Contrast checker → · Palette generator →

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