#F9E771#F9E771

#F9E771 is a very light, vivid yellow. Relative luminance 0.785; OKLCH L 92.0% C 0.140 H 100.7°. Best body text is #000000 at 16.70:1 contrast (WCAG AA passes).

Color values

HEX#F9E771
RGBrgb(249, 231, 113)
HSLhsl(52, 92%, 71%)
HSVhsv(52, 55%, 98%)
CMYKcmyk(0%, 7.2%, 54.6%, 2.4%)
CIE-LABlab(91.00, -8.34, 58.76)
CIE-LCHlch(91.00, 59.35, 98.08°)
OKLaboklab(91.96% -0.0261 0.1373)
OKLCHoklch(91.96% 0.14 100.7)
XYZxyz(70.6259, 78.4865, 27.0488)
Luminance0.7848 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F9E771 #7183F9
analogous
#F9A371 #F9E771 #C7F971
triadic
#F9E771 #71F9E7 #E771F9
tetradic
#F9E771 #71F9A3 #7183F9 #F971C7
square
#F9E771 #71F9A3 #7183F9 #F971C7
split-complementary
#F9E771 #71C7F9 #A371F9
monochromatic
#E6C90A #F7DD36 #F9E771 #FBF1AC #FEFAE2

Accessibility & contrast

On white

1.26
#F9E771 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.70
#F9E771 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F9E771
16.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F9E771#FFFFFF#000000##000000
##F9E7711.001.2616.7016.70
#FFFFFF1.261.0021.0021.00
#00000016.7021.001.001.00
##00000016.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#F9E166
Deuteranopia (green-blind)
#FFE877
Tritanopia (blue-blind)
#FFD9CC
Achromatopsia (no color)
#E5E5E5

Design tokens & code

CSS
--color: #f9e771;
/* rgb */ color: rgb(249, 231, 113);
/* oklch */ color: oklch(92.0% 0.140 100.7);
Tailwind
colors: {
  custom: {
    50: '#feee9d',
    500: '#f9e771',
    950: '#000000',
  },
}
SCSS
$custom: #f9e771;
$custom-light: #feee9d;
$custom-dark: #000000;
JSON
{
  "hex": "#f9e771",
  "rgb": {
    "r": 249,
    "g": 231,
    "b": 113
  },
  "hsl": {
    "h": 52.059,
    "s": 91.892,
    "l": 70.98
  },
  "oklch": {
    "l": 0.91956,
    "c": 0.13974,
    "h": 100.7
  },
  "luminance": 0.78484
}

Semantic roles & 50–950 ramp

primary
#F9E771
secondary
#3A4ED4
accent
#1EE600
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#18160E
muted
#86847F

Preview Lab

Preview with #F9E771

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

Preview Lab → · Contrast checker → · Palette generator →

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