#F9F040#F9F040

#F9F040 is a very light, vivid yellow. Relative luminance 0.828; OKLCH L 93.4% C 0.183 H 106.4°. Best body text is #000000 at 17.57:1 contrast (WCAG AA passes).

Color values

HEX#F9F040
RGBrgb(249, 240, 64)
HSLhsl(57, 94%, 61%)
HSVhsv(57, 74%, 98%)
CMYKcmyk(0%, 3.6%, 74.3%, 2.4%)
CIE-LABlab(92.94, -15.57, 79.95)
CIE-LCHlch(92.94, 81.45, 101.02°)
OKLaboklab(93.38% -0.0516 0.1751)
OKLCHoklch(93.38% 0.183 106.4)
XYZxyz(71.1554, 82.8327, 17.0897)
Luminance0.8283 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F9F040 #4049F9
analogous
#F99440 #F9F040 #A6F940
triadic
#F9F040 #40F9F0 #F040F9
tetradic
#F9F040 #40F994 #4049F9 #F940A6
square
#F9F040 #40F994 #4049F9 #F940A6
split-complementary
#F9F040 #40A6F9 #9440F9
monochromatic
#B9B006 #F4E908 #F9F040 #FBF57B #FDF9B7

Accessibility & contrast

On white

1.20
#F9F040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.57
#F9F040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F9F040
17.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F9F040#FFFFFF#000000##000000
##F9F0401.001.2017.5717.57
#FFFFFF1.201.0021.0021.00
#00000017.5721.001.001.00
##00000017.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE717
Deuteranopia (green-blind)
#FFEE4E
Tritanopia (blue-blind)
#FFE0CF
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #f9f040;
/* rgb */ color: rgb(249, 240, 64);
/* oklch */ color: oklch(93.4% 0.183 106.4);
Tailwind
colors: {
  custom: {
    50: '#fff482',
    500: '#f9f040',
    950: '#000000',
  },
}
SCSS
$custom: #f9f040;
$custom-light: #fff482;
$custom-dark: #000000;
JSON
{
  "hex": "#f9f040",
  "rgb": {
    "r": 249,
    "g": 240,
    "b": 64
  },
  "hsl": {
    "h": 57.081,
    "s": 93.909,
    "l": 61.373
  },
  "oklch": {
    "l": 0.93381,
    "c": 0.18252,
    "h": 106.4
  },
  "luminance": 0.8283
}

Semantic roles & 50–950 ramp

primary
#F9F040
secondary
#262DB7
accent
#0BE600
background
#FFFFFB
surface
#FFFEF2
border
#D7D6CC
text
#19170B
muted
#87857E

Preview Lab

Preview with #F9F040

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

Preview Lab → · Contrast checker → · Palette generator →

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