#F8E372#F8E372

#F8E372 is a very light, vivid yellow. Relative luminance 0.761; OKLCH L 91.1% C 0.135 H 99.0°. Best body text is #000000 at 16.22:1 contrast (WCAG AA passes).

Color values

HEX#F8E372
RGBrgb(248, 227, 114)
HSLhsl(51, 91%, 71%)
HSVhsv(51, 54%, 97%)
CMYKcmyk(0%, 8.5%, 54%, 2.7%)
CIE-LABlab(89.91, -6.66, 57.02)
CIE-LCHlch(89.91, 57.40, 96.67°)
OKLaboklab(91.08% -0.0211 0.1336)
OKLCHoklch(91.08% 0.135 99)
XYZxyz(69.2202, 76.1123, 26.9613)
Luminance0.7611 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8E372 #7287F8
analogous
#F8A072 #F8E372 #CAF872
triadic
#F8E372 #72F8E3 #E372F8
tetradic
#F8E372 #72F8A0 #7287F8 #F872CA
square
#F8E372 #72F8A0 #7287F8 #F872CA
split-complementary
#F8E372 #72CAF8 #A072F8
monochromatic
#E4C20B #F5D738 #F8E372 #FBEFAC #FEF9E2

Accessibility & contrast

On white

1.29
#F8E372 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.22
#F8E372 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8E372
16.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8E372#FFFFFF#000000##000000
##F8E3721.001.2916.2216.22
#FFFFFF1.291.0021.0021.00
#00000016.2221.001.001.00
##00000016.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#F5DE67
Deuteranopia (green-blind)
#FBE677
Tritanopia (blue-blind)
#FFD5C9
Achromatopsia (no color)
#E2E2E2

Design tokens & code

CSS
--color: #f8e372;
/* rgb */ color: rgb(248, 227, 114);
/* oklch */ color: oklch(91.1% 0.135 99.0);
Tailwind
colors: {
  custom: {
    50: '#fdeb9d',
    500: '#f8e372',
    950: '#000000',
  },
}
SCSS
$custom: #f8e372;
$custom-light: #fdeb9d;
$custom-dark: #000000;
JSON
{
  "hex": "#f8e372",
  "rgb": {
    "r": 248,
    "g": 227,
    "b": 114
  },
  "hsl": {
    "h": 50.597,
    "s": 90.541,
    "l": 70.98
  },
  "oklch": {
    "l": 0.91076,
    "c": 0.13529,
    "h": 99
  },
  "luminance": 0.7611
}

Semantic roles & 50–950 ramp

primary
#F8E372
secondary
#3B53D3
accent
#24E600
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#18160F
muted
#868480

Preview Lab

Preview with #F8E372

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

Preview Lab → · Contrast checker → · Palette generator →

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