#F8D772#F8D772

#F8D772 is a very light, vivid yellow. Relative luminance 0.698; OKLCH L 88.7% C 0.126 H 91.6°. Best body text is #000000 at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#F8D772
RGBrgb(248, 215, 114)
HSLhsl(45, 91%, 71%)
HSVhsv(45, 54%, 97%)
CMYKcmyk(0%, 13.3%, 54%, 2.7%)
CIE-LABlab(86.89, -0.60, 53.46)
CIE-LCHlch(86.89, 53.47, 90.64°)
OKLaboklab(88.68% -0.0035 0.1259)
OKLCHoklch(88.68% 0.126 91.6)
XYZxyz(66.0517, 69.7754, 25.9052)
Luminance0.6977 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8D772 #7293F8
analogous
#F89472 #F8D772 #D6F872
triadic
#F8D772 #72F8D7 #D772F8
tetradic
#F8D772 #72F894 #7293F8 #F872D6
square
#F8D772 #72F894 #7293F8 #F872D6
split-complementary
#F8D772 #72D6F8 #9472F8
monochromatic
#E4AF0B #F5C638 #F8D772 #FBE8AC #FEF7E2

Accessibility & contrast

On white

1.40
#F8D772 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.95
#F8D772 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8D772
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8D772#FFFFFF#000000##000000
##F8D7721.001.4014.9514.95
#FFFFFF1.401.0021.0021.00
#00000014.9521.001.001.00
##00000014.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#EAD469
Deuteranopia (green-blind)
#F2DE76
Tritanopia (blue-blind)
#FFC9C0
Achromatopsia (no color)
#DADADA

Design tokens & code

CSS
--color: #f8d772;
/* rgb */ color: rgb(248, 215, 114);
/* oklch */ color: oklch(88.7% 0.126 91.6);
Tailwind
colors: {
  custom: {
    50: '#fde39d',
    500: '#f8d772',
    950: '#000000',
  },
}
SCSS
$custom: #f8d772;
$custom-light: #fde39d;
$custom-dark: #000000;
JSON
{
  "hex": "#f8d772",
  "rgb": {
    "r": 248,
    "g": 215,
    "b": 114
  },
  "hsl": {
    "h": 45.224,
    "s": 90.541,
    "l": 70.98
  },
  "oklch": {
    "l": 0.88684,
    "c": 0.12597,
    "h": 91.6
  },
  "luminance": 0.69772
}

Semantic roles & 50–950 ramp

primary
#F8D772
secondary
#3B61D3
accent
#39E600
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150E
muted
#86847F

Preview Lab

Preview with #F8D772

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

Preview Lab → · Contrast checker → · Palette generator →

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