#F8E271#F8E271

#F8E271 is a very light, vivid yellow. Relative luminance 0.755; OKLCH L 90.9% C 0.135 H 98.5°. Best body text is #000000 at 16.11:1 contrast (WCAG AA passes).

Color values

HEX#F8E271
RGBrgb(248, 226, 113)
HSLhsl(50, 91%, 71%)
HSVhsv(50, 54%, 97%)
CMYKcmyk(0%, 8.9%, 54.4%, 2.7%)
CIE-LABlab(89.65, -6.24, 57.17)
CIE-LCHlch(89.65, 57.51, 96.23°)
OKLaboklab(90.86% -0.02 0.1339)
OKLCHoklch(90.86% 0.135 98.5)
XYZxyz(68.8908, 75.5442, 26.5723)
Luminance0.7554 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8E271 #7187F8
analogous
#F89E71 #F8E271 #CAF871
triadic
#F8E271 #71F8E2 #E271F8
tetradic
#F8E271 #71F89E #7187F8 #F871CA
square
#F8E271 #71F89E #7187F8 #F871CA
split-complementary
#F8E271 #71CAF8 #9E71F8
monochromatic
#E3C00B #F5D637 #F8E271 #FBEEAB #FEF9E2

Accessibility & contrast

On white

1.30
#F8E271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.11
#F8E271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8E271
16.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8E271#FFFFFF#000000##000000
##F8E2711.001.3016.1116.11
#FFFFFF1.301.0021.0021.00
#00000016.1121.001.001.00
##00000016.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#F5DD66
Deuteranopia (green-blind)
#FBE576
Tritanopia (blue-blind)
#FFD4C8
Achromatopsia (no color)
#E1E1E1

Design tokens & code

CSS
--color: #f8e271;
/* rgb */ color: rgb(248, 226, 113);
/* oklch */ color: oklch(90.9% 0.135 98.5);
Tailwind
colors: {
  custom: {
    50: '#fdea9d',
    500: '#f8e271',
    950: '#000000',
  },
}
SCSS
$custom: #f8e271;
$custom-light: #fdea9d;
$custom-dark: #000000;
JSON
{
  "hex": "#f8e271",
  "rgb": {
    "r": 248,
    "g": 226,
    "b": 113
  },
  "hsl": {
    "h": 50.222,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.90863,
    "c": 0.13535,
    "h": 98.5
  },
  "luminance": 0.75541
}

Semantic roles & 50–950 ramp

primary
#F8E271
secondary
#3A53D3
accent
#25E600
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#18160E
muted
#86847F

Preview Lab

Preview with #F8E271

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

Preview Lab → · Contrast checker → · Palette generator →

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