#F9D251#F9D251

#F9D251 is a very light, vivid yellow. Relative luminance 0.668; OKLCH L 87.4% C 0.150 H 92.0°. Best body text is #000000 at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#F9D251
RGBrgb(249, 210, 81)
HSLhsl(46, 93%, 65%)
HSVhsv(46, 67%, 98%)
CMYKcmyk(0%, 15.7%, 67.5%, 2.4%)
CIE-LABlab(85.42, 0.19, 66.47)
CIE-LCHlch(85.42, 66.47, 89.84°)
OKLaboklab(87.45% -0.0052 0.1495)
OKLCHoklch(87.45% 0.15 92)
XYZxyz(63.6020, 66.8306, 17.3326)
Luminance0.6683 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F9D251 #5178F9
analogous
#F97E51 #F9D251 #CCF951
triadic
#F9D251 #51F9D2 #D251F9
tetradic
#F9D251 #51F97E #5178F9 #F951CC
square
#F9D251 #51F97E #5178F9 #F951CC
split-complementary
#F9D251 #51CCF9 #7E51F9
monochromatic
#C99C07 #F7C316 #F9D251 #FBE18C #FDF1C7

Accessibility & contrast

On white

1.46
#F9D251 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.37
#F9D251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F9D251
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F9D251#FFFFFF#000000##000000
##F9D2511.001.4614.3714.37
#FFFFFF1.461.0021.0021.00
#00000014.3721.001.001.00
##00000014.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8CF40
Deuteranopia (green-blind)
#F2DA57
Tritanopia (blue-blind)
#FFC2B7
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #f9d251;
/* rgb */ color: rgb(249, 210, 81);
/* oklch */ color: oklch(87.4% 0.150 92.0);
Tailwind
colors: {
  custom: {
    50: '#ffdf88',
    500: '#f9d251',
    950: '#000000',
  },
}
SCSS
$custom: #f9d251;
$custom-light: #ffdf88;
$custom-dark: #000000;
JSON
{
  "hex": "#f9d251",
  "rgb": {
    "r": 249,
    "g": 210,
    "b": 81
  },
  "hsl": {
    "h": 46.071,
    "s": 93.333,
    "l": 64.706
  },
  "oklch": {
    "l": 0.87447,
    "c": 0.14957,
    "h": 92
  },
  "luminance": 0.66827
}

Semantic roles & 50–950 ramp

primary
#F9D251
secondary
#294DC5
accent
#35E600
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#19150C
muted
#87847F

Preview Lab

Preview with #F9D251

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

Preview Lab → · Contrast checker → · Palette generator →

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