#F8EA7C#F8EA7C

#F8EA7C is a very light, vivid yellow. Relative luminance 0.803; OKLCH L 92.6% C 0.132 H 102.1°. Best body text is #000000 at 17.05:1 contrast (WCAG AA passes).

Color values

HEX#F8EA7C
RGBrgb(248, 234, 124)
HSLhsl(53, 90%, 73%)
HSVhsv(53, 50%, 97%)
CMYKcmyk(0%, 5.6%, 50%, 2.7%)
CIE-LABlab(91.80, -9.34, 54.61)
CIE-LCHlch(91.80, 55.40, 99.71°)
OKLaboklab(92.61% -0.0277 0.1293)
OKLCHoklch(92.61% 0.132 102.1)
XYZxyz(71.7744, 80.2597, 30.7758)
Luminance0.8026 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8EA7C #7C8AF8
analogous
#F8AC7C #F8EA7C #C8F87C
triadic
#F8EA7C #7CF8EA #EA7CF8
tetradic
#F8EA7C #7CF8AC #7C8AF8 #F87CC8
square
#F8EA7C #7CF8AC #7C8AF8 #F87CC8
split-complementary
#F8EA7C #7CC8F8 #AC7CF8
monochromatic
#EDD40D #F5E142 #F8EA7C #FBF3B6 #FDFAE2

Accessibility & contrast

On white

1.23
#F8EA7C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.05
#F8EA7C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8EA7C
17.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8EA7C#FFFFFF#000000##000000
##F8EA7C1.001.2317.0517.05
#FFFFFF1.231.0021.0021.00
#00000017.0521.001.001.00
##00000017.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FBE472
Deuteranopia (green-blind)
#FFEA81
Tritanopia (blue-blind)
#FFDDD1
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #f8ea7c;
/* rgb */ color: rgb(248, 234, 124);
/* oklch */ color: oklch(92.6% 0.132 102.1);
Tailwind
colors: {
  custom: {
    50: '#fdf0a4',
    500: '#f8ea7c',
    950: '#000000',
  },
}
SCSS
$custom: #f8ea7c;
$custom-light: #fdf0a4;
$custom-dark: #000000;
JSON
{
  "hex": "#f8ea7c",
  "rgb": {
    "r": 248,
    "g": 234,
    "b": 124
  },
  "hsl": {
    "h": 53.226,
    "s": 89.855,
    "l": 72.941
  },
  "oklch": {
    "l": 0.92609,
    "c": 0.13227,
    "h": 102.1
  },
  "luminance": 0.80257
}

Semantic roles & 50–950 ramp

primary
#F8EA7C
secondary
#4454D4
accent
#1AE600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18160F
muted
#868580

Preview Lab

Preview with #F8EA7C

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

Preview Lab → · Contrast checker → · Palette generator →

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