#F9D962#F9D962

#F9D962 is a very light, vivid yellow. Relative luminance 0.706; OKLCH L 89.0% C 0.141 H 94.3°. Best body text is #000000 at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#F9D962
RGBrgb(249, 217, 98)
HSLhsl(47, 93%, 68%)
HSVhsv(47, 61%, 98%)
CMYKcmyk(0%, 12.9%, 60.6%, 2.4%)
CIE-LABlab(87.31, -2.36, 61.29)
CIE-LCHlch(87.31, 61.34, 92.21°)
OKLaboklab(88.99% -0.0106 0.141)
OKLCHoklch(88.99% 0.141 94.3)
XYZxyz(66.0873, 70.6506, 21.7088)
Luminance0.7065 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F9D962 #6282F9
analogous
#F98D62 #F9D962 #CDF962
triadic
#F9D962 #62F9D9 #D962F9
tetradic
#F9D962 #62F98D #6282F9 #F962CD
square
#F9D962 #62F98D #6282F9 #F962CD
split-complementary
#F9D962 #62CDF9 #8D62F9
monochromatic
#D8AC08 #F7CB27 #F9D962 #FBE79D #FEF6D8

Accessibility & contrast

On white

1.39
#F9D962 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.13
#F9D962 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F9D962
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F9D962#FFFFFF#000000##000000
##F9D9621.001.3915.1315.13
#FFFFFF1.391.0021.0021.00
#00000015.1321.001.001.00
##00000015.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#EDD555
Deuteranopia (green-blind)
#F5DF67
Tritanopia (blue-blind)
#FFCABF
Achromatopsia (no color)
#DBDBDB

Design tokens & code

CSS
--color: #f9d962;
/* rgb */ color: rgb(249, 217, 98);
/* oklch */ color: oklch(89.0% 0.141 94.3);
Tailwind
colors: {
  custom: {
    50: '#ffe493',
    500: '#f9d962',
    950: '#000000',
  },
}
SCSS
$custom: #f9d962;
$custom-light: #ffe493;
$custom-dark: #000000;
JSON
{
  "hex": "#f9d962",
  "rgb": {
    "r": 249,
    "g": 217,
    "b": 98
  },
  "hsl": {
    "h": 47.285,
    "s": 92.638,
    "l": 68.039
  },
  "oklch": {
    "l": 0.88991,
    "c": 0.14138,
    "h": 94.3
  },
  "luminance": 0.70647
}

Semantic roles & 50–950 ramp

primary
#F9D962
secondary
#2D50D2
accent
#31E600
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F9D962

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

Preview Lab → · Contrast checker → · Palette generator →

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