#F9D451#F9D451

#F9D451 is a very light, vivid yellow. Relative luminance 0.678; OKLCH L 87.8% C 0.151 H 93.1°. Best body text is #000000 at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#F9D451
RGBrgb(249, 212, 81)
HSLhsl(47, 93%, 65%)
HSVhsv(47, 67%, 98%)
CMYKcmyk(0%, 14.9%, 67.5%, 2.4%)
CIE-LABlab(85.92, -0.83, 66.99)
CIE-LCHlch(85.92, 66.99, 90.71°)
OKLaboklab(87.84% -0.0081 0.1506)
OKLCHoklch(87.84% 0.151 93.1)
XYZxyz(64.0989, 67.8243, 17.4982)
Luminance0.6782 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F9D451 #5176F9
analogous
#F98051 #F9D451 #CAF951
triadic
#F9D451 #51F9D4 #D451F9
tetradic
#F9D451 #51F980 #5176F9 #F951CA
square
#F9D451 #51F980 #5176F9 #F951CA
split-complementary
#F9D451 #51CAF9 #8051F9
monochromatic
#C99E07 #F7C516 #F9D451 #FBE38C #FDF1C7

Accessibility & contrast

On white

1.44
#F9D451 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.56
#F9D451 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F9D451
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F9D451#FFFFFF#000000##000000
##F9D4511.001.4414.5614.56
#FFFFFF1.441.0021.0021.00
#00000014.5621.001.001.00
##00000014.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#EAD140
Deuteranopia (green-blind)
#F3DB58
Tritanopia (blue-blind)
#FFC4B9
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #f9d451;
/* rgb */ color: rgb(249, 212, 81);
/* oklch */ color: oklch(87.8% 0.151 93.1);
Tailwind
colors: {
  custom: {
    50: '#ffe088',
    500: '#f9d451',
    950: '#000000',
  },
}
SCSS
$custom: #f9d451;
$custom-light: #ffe088;
$custom-dark: #000000;
JSON
{
  "hex": "#f9d451",
  "rgb": {
    "r": 249,
    "g": 212,
    "b": 81
  },
  "hsl": {
    "h": 46.786,
    "s": 93.333,
    "l": 64.706
  },
  "oklch": {
    "l": 0.87842,
    "c": 0.1508,
    "h": 93.1
  },
  "luminance": 0.67821
}

Semantic roles & 50–950 ramp

primary
#F9D451
secondary
#294CC5
accent
#33E600
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F9D451

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

Preview Lab → · Contrast checker → · Palette generator →

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