#F8EB7B#F8EB7B

#F8EB7B is a very light, vivid yellow. Relative luminance 0.808; OKLCH L 92.8% C 0.134 H 102.7°. Best body text is #000000 at 17.16:1 contrast (WCAG AA passes).

Color values

HEX#F8EB7B
RGBrgb(248, 235, 123)
HSLhsl(54, 90%, 73%)
HSVhsv(54, 50%, 97%)
CMYKcmyk(0%, 5.2%, 50.4%, 2.7%)
CIE-LABlab(92.05, -9.92, 55.37)
CIE-LCHlch(92.05, 56.25, 100.16°)
OKLaboklab(92.8% -0.0295 0.1309)
OKLCHoklch(92.8% 0.134 102.7)
XYZxyz(71.9970, 80.8056, 30.5396)
Luminance0.8080 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8EB7B #7B88F8
analogous
#F8AC7B #F8EB7B #C6F87B
triadic
#F8EB7B #7BF8EB #EB7BF8
tetradic
#F8EB7B #7BF8AC #7B88F8 #F87BC6
square
#F8EB7B #7BF8AC #7B88F8 #F87BC6
split-complementary
#F8EB7B #7BC6F8 #AC7BF8
monochromatic
#ECD50D #F5E241 #F8EB7B #FBF4B5 #FDFBE2

Accessibility & contrast

On white

1.22
#F8EB7B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.16
#F8EB7B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8EB7B
17.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8EB7B#FFFFFF#000000##000000
##F8EB7B1.001.2217.1617.16
#FFFFFF1.221.0021.0021.00
#00000017.1621.001.001.00
##00000017.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FCE571
Deuteranopia (green-blind)
#FFEB80
Tritanopia (blue-blind)
#FFDED1
Achromatopsia (no color)
#E8E8E8

Design tokens & code

CSS
--color: #f8eb7b;
/* rgb */ color: rgb(248, 235, 123);
/* oklch */ color: oklch(92.8% 0.134 102.7);
Tailwind
colors: {
  custom: {
    50: '#fdf1a4',
    500: '#f8eb7b',
    950: '#000000',
  },
}
SCSS
$custom: #f8eb7b;
$custom-light: #fdf1a4;
$custom-dark: #000000;
JSON
{
  "hex": "#f8eb7b",
  "rgb": {
    "r": 248,
    "g": 235,
    "b": 123
  },
  "hsl": {
    "h": 53.76,
    "s": 89.928,
    "l": 72.745
  },
  "oklch": {
    "l": 0.92799,
    "c": 0.13418,
    "h": 102.7
  },
  "luminance": 0.80803
}

Semantic roles & 50–950 ramp

primary
#F8EB7B
secondary
#4352D4
accent
#18E600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18160F
muted
#868580

Preview Lab

Preview with #F8EB7B

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

Preview Lab → · Contrast checker → · Palette generator →

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