#F9E97B#F9E97B

#F9E97B is a very light, vivid yellow. Relative luminance 0.798; OKLCH L 92.5% C 0.132 H 101.1°. Best body text is #000000 at 16.97:1 contrast (WCAG AA passes).

Color values

HEX#F9E97B
RGBrgb(249, 233, 123)
HSLhsl(52, 91%, 73%)
HSVhsv(52, 51%, 98%)
CMYKcmyk(0%, 6.4%, 50.6%, 2.4%)
CIE-LABlab(91.62, -8.53, 54.88)
CIE-LCHlch(91.62, 55.54, 98.84°)
OKLaboklab(92.48% -0.0256 0.1298)
OKLCHoklch(92.48% 0.132 101.1)
XYZxyz(71.7831, 79.8501, 30.3664)
Luminance0.7985 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F9E97B #7B8BF9
analogous
#F9AA7B #F9E97B #CAF97B
triadic
#F9E97B #7BF9E9 #E97BF9
tetradic
#F9E97B #7BF9AA #7B8BF9 #F97BCA
square
#F9E97B #7BF9AA #7B8BF9 #F97BCA
split-complementary
#F9E97B #7BCAF9 #AA7BF9
monochromatic
#EFD20B #F6DF40 #F9E97B #FCF3B6 #FEFAE2

Accessibility & contrast

On white

1.24
#F9E97B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.97
#F9E97B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F9E97B
16.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F9E97B#FFFFFF#000000##000000
##F9E97B1.001.2416.9716.97
#FFFFFF1.241.0021.0021.00
#00000016.9721.001.001.00
##00000016.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FBE371
Deuteranopia (green-blind)
#FFEA80
Tritanopia (blue-blind)
#FFDCD0
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #f9e97b;
/* rgb */ color: rgb(249, 233, 123);
/* oklch */ color: oklch(92.5% 0.132 101.1);
Tailwind
colors: {
  custom: {
    50: '#fdefa4',
    500: '#f9e97b',
    950: '#000000',
  },
}
SCSS
$custom: #f9e97b;
$custom-light: #fdefa4;
$custom-dark: #000000;
JSON
{
  "hex": "#f9e97b",
  "rgb": {
    "r": 249,
    "g": 233,
    "b": 123
  },
  "hsl": {
    "h": 52.381,
    "s": 91.304,
    "l": 72.941
  },
  "oklch": {
    "l": 0.9248,
    "c": 0.13231,
    "h": 101.1
  },
  "luminance": 0.79848
}

Semantic roles & 50–950 ramp

primary
#F9E97B
secondary
#4355D6
accent
#1DE600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18160F
muted
#868580

Preview Lab

Preview with #F9E97B

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

Preview Lab → · Contrast checker → · Palette generator →

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