#F8DF7A#F8DF7A

#F8DF7A is a very light, vivid yellow. Relative luminance 0.741; OKLCH L 90.4% C 0.124 H 95.8°. Best body text is #000000 at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#F8DF7A
RGBrgb(248, 223, 122)
HSLhsl(48, 90%, 73%)
HSVhsv(48, 51%, 97%)
CMYKcmyk(0%, 10.1%, 50.8%, 2.7%)
CIE-LABlab(88.99, -4.00, 52.18)
CIE-LCHlch(88.99, 52.33, 94.39°)
OKLaboklab(90.37% -0.0125 0.1238)
OKLCHoklch(90.37% 0.124 95.8)
XYZxyz(68.6142, 74.1398, 29.1048)
Luminance0.7414 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8DF7A #7A93F8
analogous
#F8A07A #F8DF7A #D2F87A
triadic
#F8DF7A #7AF8DF #DF7AF8
tetradic
#F8DF7A #7AF8A0 #7A93F8 #F87AD2
square
#F8DF7A #7AF8A0 #7A93F8 #F87AD2
split-complementary
#F8DF7A #7AD2F8 #A07AF8
monochromatic
#EBBF0C #F5D140 #F8DF7A #FBEDB4 #FDF8E2

Accessibility & contrast

On white

1.33
#F8DF7A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.83
#F8DF7A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8DF7A
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8DF7A#FFFFFF#000000##000000
##F8DF7A1.001.3315.8315.83
#FFFFFF1.331.0021.0021.00
#00000015.8321.001.001.00
##00000015.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#F1DB71
Deuteranopia (green-blind)
#F8E37E
Tritanopia (blue-blind)
#FFD2C7
Achromatopsia (no color)
#DFDFDF

Design tokens & code

CSS
--color: #f8df7a;
/* rgb */ color: rgb(248, 223, 122);
/* oklch */ color: oklch(90.4% 0.124 95.8);
Tailwind
colors: {
  custom: {
    50: '#fde8a2',
    500: '#f8df7a',
    950: '#000000',
  },
}
SCSS
$custom: #f8df7a;
$custom-light: #fde8a2;
$custom-dark: #000000;
JSON
{
  "hex": "#f8df7a",
  "rgb": {
    "r": 248,
    "g": 223,
    "b": 122
  },
  "hsl": {
    "h": 48.095,
    "s": 90,
    "l": 72.549
  },
  "oklch": {
    "l": 0.90374,
    "c": 0.12446,
    "h": 95.8
  },
  "luminance": 0.74137
}

Semantic roles & 50–950 ramp

primary
#F8DF7A
secondary
#425FD4
accent
#2EE600
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#18160F
muted
#868480

Preview Lab

Preview with #F8DF7A

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

Preview Lab → · Contrast checker → · Palette generator →

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