#F8E793#F8E793

#F8E793 is a very light, moderate yellow. Relative luminance 0.792; OKLCH L 92.3% C 0.106 H 98.2°. Best body text is #000000 at 16.84:1 contrast (WCAG AA passes).

Color values

HEX#F8E793
RGBrgb(248, 231, 147)
HSLhsl(50, 88%, 77%)
HSVhsv(50, 41%, 97%)
CMYKcmyk(0%, 6.9%, 40.7%, 2.7%)
CIE-LABlab(91.33, -5.68, 42.94)
CIE-LCHlch(91.33, 43.31, 97.53°)
OKLaboklab(92.33% -0.015 0.1048)
OKLCHoklch(92.33% 0.106 98.2)
XYZxyz(72.5553, 79.2172, 39.0666)
Luminance0.7922 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8E793 #93A4F8
analogous
#F8B593 #F8E793 #D7F893
triadic
#F8E793 #93F8E7 #E793F8
tetradic
#F8E793 #93F8B5 #93A4F8 #F893D7
square
#F8E793 #93F8B5 #93A4F8 #F893D7
split-complementary
#F8E793 #93D7F8 #B593F8
monochromatic
#F1CD20 #F4DA5A #F8E793 #FCF4CC #FDF9E2

Accessibility & contrast

On white

1.25
#F8E793 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.84
#F8E793 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8E793
16.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8E793#FFFFFF#000000##000000
##F8E7931.001.2516.8416.84
#FFFFFF1.251.0021.0021.00
#00000016.8421.001.001.00
##00000016.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#F6E38D
Deuteranopia (green-blind)
#FBE996
Tritanopia (blue-blind)
#FFDCD2
Achromatopsia (no color)
#E6E6E6

Design tokens & code

CSS
--color: #f8e793;
/* rgb */ color: rgb(248, 231, 147);
/* oklch */ color: oklch(92.3% 0.106 98.2);
Tailwind
colors: {
  custom: {
    50: '#fceeb4',
    500: '#f8e793',
    950: '#000000',
  },
}
SCSS
$custom: #f8e793;
$custom-light: #fceeb4;
$custom-dark: #000000;
JSON
{
  "hex": "#f8e793",
  "rgb": {
    "r": 248,
    "g": 231,
    "b": 147
  },
  "hsl": {
    "h": 49.901,
    "s": 87.826,
    "l": 77.451
  },
  "oklch": {
    "l": 0.92333,
    "c": 0.10585,
    "h": 98.2
  },
  "luminance": 0.79215
}

Semantic roles & 50–950 ramp

primary
#F8E793
secondary
#586DD7
accent
#27E401
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181611
muted
#868581

Preview Lab

Preview with #F8E793

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

Preview Lab → · Contrast checker → · Palette generator →

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