#F9E271#F9E271

#F9E271 is a very light, vivid yellow. Relative luminance 0.757; OKLCH L 91.0% C 0.135 H 98.0°. Best body text is #000000 at 16.15:1 contrast (WCAG AA passes).

Color values

HEX#F9E271
RGBrgb(249, 226, 113)
HSLhsl(50, 92%, 71%)
HSVhsv(50, 55%, 98%)
CMYKcmyk(0%, 9.2%, 54.6%, 2.4%)
CIE-LABlab(89.73, -5.84, 57.29)
CIE-LCHlch(89.73, 57.58, 95.82°)
OKLaboklab(90.95% -0.0189 0.1341)
OKLCHoklch(90.95% 0.135 98)
XYZxyz(69.2464, 75.7276, 26.5889)
Luminance0.7572 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F9E271 #7188F9
analogous
#F99E71 #F9E271 #CCF971
triadic
#F9E271 #71F9E2 #E271F9
tetradic
#F9E271 #71F99E #7188F9 #F971CC
square
#F9E271 #71F99E #7188F9 #F971CC
split-complementary
#F9E271 #71CCF9 #9E71F9
monochromatic
#E6C10A #F7D636 #F9E271 #FBEEAC #FEF9E2

Accessibility & contrast

On white

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

On black

16.15
#F9E271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F9E271
16.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F9E271#FFFFFF#000000##000000
##F9E2711.001.3016.1516.15
#FFFFFF1.301.0021.0021.00
#00000016.1521.001.001.00
##00000016.1521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f9e271;
/* rgb */ color: rgb(249, 226, 113);
/* oklch */ color: oklch(91.0% 0.135 98.0);
Tailwind
colors: {
  custom: {
    50: '#feea9d',
    500: '#f9e271',
    950: '#000000',
  },
}
SCSS
$custom: #f9e271;
$custom-light: #feea9d;
$custom-dark: #000000;
JSON
{
  "hex": "#f9e271",
  "rgb": {
    "r": 249,
    "g": 226,
    "b": 113
  },
  "hsl": {
    "h": 49.853,
    "s": 91.892,
    "l": 70.98
  },
  "oklch": {
    "l": 0.90951,
    "c": 0.13543,
    "h": 98
  },
  "luminance": 0.75725
}

Semantic roles & 50–950 ramp

primary
#F9E271
secondary
#3A54D4
accent
#27E600
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#18160E
muted
#86847F

Preview Lab

Preview with #F9E271

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

Preview Lab → · Contrast checker → · Palette generator →

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