#F8E371#F8E371

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

Color values

HEX#F8E371
RGBrgb(248, 227, 113)
HSLhsl(51, 91%, 71%)
HSVhsv(51, 54%, 97%)
CMYKcmyk(0%, 8.5%, 54.4%, 2.7%)
CIE-LABlab(89.90, -6.74, 57.46)
CIE-LCHlch(89.90, 57.86, 96.69°)
OKLaboklab(91.06% -0.0214 0.1345)
OKLCHoklch(91.06% 0.136 99)
XYZxyz(69.1635, 76.0896, 26.6632)
Luminance0.7609 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8E371 #7186F8
analogous
#F89F71 #F8E371 #C9F871
triadic
#F8E371 #71F8E3 #E371F8
tetradic
#F8E371 #71F89F #7186F8 #F871C9
square
#F8E371 #71F89F #7186F8 #F871C9
split-complementary
#F8E371 #71C9F8 #9F71F8
monochromatic
#E3C20B #F5D837 #F8E371 #FBEFAB #FEF9E2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F8E371#FFFFFF#000000##000000
##F8E3711.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)
#F6DE66
Deuteranopia (green-blind)
#FBE576
Tritanopia (blue-blind)
#FFD5C9
Achromatopsia (no color)
#E2E2E2

Design tokens & code

CSS
--color: #f8e371;
/* rgb */ color: rgb(248, 227, 113);
/* oklch */ color: oklch(91.1% 0.136 99.0);
Tailwind
colors: {
  custom: {
    50: '#fdeb9d',
    500: '#f8e371',
    950: '#000000',
  },
}
SCSS
$custom: #f8e371;
$custom-light: #fdeb9d;
$custom-dark: #000000;
JSON
{
  "hex": "#f8e371",
  "rgb": {
    "r": 248,
    "g": 227,
    "b": 113
  },
  "hsl": {
    "h": 50.667,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.91064,
    "c": 0.1362,
    "h": 99
  },
  "luminance": 0.76087
}

Semantic roles & 50–950 ramp

primary
#F8E371
secondary
#3A52D3
accent
#24E600
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#18160E
muted
#86847F

Preview Lab

Preview with #F8E371

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

Preview Lab → · Contrast checker → · Palette generator →

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