#F8DC7B#F8DC7B

#F8DC7B is a very light, vivid yellow. Relative luminance 0.726; OKLCH L 89.8% C 0.121 H 93.7°. Best body text is #000000 at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#F8DC7B
RGBrgb(248, 220, 123)
HSLhsl(47, 90%, 73%)
HSVhsv(47, 50%, 97%)
CMYKcmyk(0%, 11.3%, 50.4%, 2.7%)
CIE-LABlab(88.25, -2.40, 50.81)
CIE-LCHlch(88.25, 50.86, 92.70°)
OKLaboklab(89.79% -0.0078 0.1209)
OKLCHoklch(89.79% 0.121 93.7)
XYZxyz(67.8821, 72.5758, 29.1679)
Luminance0.7257 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8DC7B #7B97F8
analogous
#F89D7B #F8DC7B #D5F87B
triadic
#F8DC7B #7BF8DC #DC7BF8
tetradic
#F8DC7B #7BF89D #7B97F8 #F87BD5
square
#F8DC7B #7BF89D #7B97F8 #F87BD5
split-complementary
#F8DC7B #7BD5F8 #9D7BF8
monochromatic
#ECBA0D #F5CD41 #F8DC7B #FBEBB5 #FDF7E2

Accessibility & contrast

On white

1.35
#F8DC7B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.51
#F8DC7B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8DC7B
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8DC7B#FFFFFF#000000##000000
##F8DC7B1.001.3515.5115.51
#FFFFFF1.351.0021.0021.00
#00000015.5121.001.001.00
##00000015.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#EED873
Deuteranopia (green-blind)
#F5E17F
Tritanopia (blue-blind)
#FFCFC5
Achromatopsia (no color)
#DDDDDD

Design tokens & code

CSS
--color: #f8dc7b;
/* rgb */ color: rgb(248, 220, 123);
/* oklch */ color: oklch(89.8% 0.121 93.7);
Tailwind
colors: {
  custom: {
    50: '#fde6a3',
    500: '#f8dc7b',
    950: '#000000',
  },
}
SCSS
$custom: #f8dc7b;
$custom-light: #fde6a3;
$custom-dark: #000000;
JSON
{
  "hex": "#f8dc7b",
  "rgb": {
    "r": 248,
    "g": 220,
    "b": 123
  },
  "hsl": {
    "h": 46.56,
    "s": 89.928,
    "l": 72.745
  },
  "oklch": {
    "l": 0.8979,
    "c": 0.12114,
    "h": 93.7
  },
  "luminance": 0.72573
}

Semantic roles & 50–950 ramp

primary
#F8DC7B
secondary
#4364D4
accent
#33E600
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#18150F
muted
#868480

Preview Lab

Preview with #F8DC7B

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

Preview Lab → · Contrast checker → · Palette generator →

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