#F8DF7B#F8DF7B

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

Color values

HEX#F8DF7B
RGBrgb(248, 223, 123)
HSLhsl(48, 90%, 73%)
HSVhsv(48, 50%, 97%)
CMYKcmyk(0%, 10.1%, 50.4%, 2.7%)
CIE-LABlab(89.00, -3.92, 51.72)
CIE-LCHlch(89.00, 51.87, 94.33°)
OKLaboklab(90.39% -0.0122 0.1229)
OKLCHoklch(90.39% 0.124 95.7)
XYZxyz(68.6765, 74.1647, 29.4328)
Luminance0.7416 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8DF7B #7B94F8
analogous
#F8A07B #F8DF7B #D2F87B
triadic
#F8DF7B #7BF8DF #DF7BF8
tetradic
#F8DF7B #7BF8A0 #7B94F8 #F87BD2
square
#F8DF7B #7BF8A0 #7B94F8 #F87BD2
split-complementary
#F8DF7B #7BD2F8 #A07BF8
monochromatic
#ECBF0D #F5D141 #F8DF7B #FBEDB5 #FDF8E2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F8DF7B#FFFFFF#000000##000000
##F8DF7B1.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)
#F1DB72
Deuteranopia (green-blind)
#F8E37F
Tritanopia (blue-blind)
#FFD2C8
Achromatopsia (no color)
#DFDFDF

Design tokens & code

CSS
--color: #f8df7b;
/* rgb */ color: rgb(248, 223, 123);
/* oklch */ color: oklch(90.4% 0.123 95.7);
Tailwind
colors: {
  custom: {
    50: '#fde8a3',
    500: '#f8df7b',
    950: '#000000',
  },
}
SCSS
$custom: #f8df7b;
$custom-light: #fde8a3;
$custom-dark: #000000;
JSON
{
  "hex": "#f8df7b",
  "rgb": {
    "r": 248,
    "g": 223,
    "b": 123
  },
  "hsl": {
    "h": 48,
    "s": 89.928,
    "l": 72.745
  },
  "oklch": {
    "l": 0.90387,
    "c": 0.1235,
    "h": 95.7
  },
  "luminance": 0.74162
}

Semantic roles & 50–950 ramp

primary
#F8DF7B
secondary
#4360D4
accent
#2EE600
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#18160F
muted
#868480

Preview Lab

Preview with #F8DF7B

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

Preview Lab → · Contrast checker → · Palette generator →

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