#F9F340#F9F340

#F9F340 is a very light, vivid yellow. Relative luminance 0.846; OKLCH L 94.0% C 0.185 H 107.5°. Best body text is #000000 at 17.92:1 contrast (WCAG AA passes).

Color values

HEX#F9F340
RGBrgb(249, 243, 64)
HSLhsl(58, 94%, 61%)
HSVhsv(58, 74%, 98%)
CMYKcmyk(0%, 2.4%, 74.3%, 2.4%)
CIE-LABlab(93.72, -17.03, 80.66)
CIE-LCHlch(93.72, 82.44, 101.92°)
OKLaboklab(94% -0.0557 0.1766)
OKLCHoklch(94% 0.185 107.5)
XYZxyz(72.0458, 84.6136, 17.3865)
Luminance0.8461 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F9F340 #4046F9
analogous
#F99740 #F9F340 #A3F940
triadic
#F9F340 #40F9F3 #F340F9
tetradic
#F9F340 #40F997 #4046F9 #F940A3
square
#F9F340 #40F997 #4046F9 #F940A3
split-complementary
#F9F340 #40A3F9 #9740F9
monochromatic
#B9B306 #F4EC08 #F9F340 #FBF77B #FDFAB7

Accessibility & contrast

On white

1.17
#F9F340 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.92
#F9F340 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F9F340
17.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F9F340#FFFFFF#000000##000000
##F9F3401.001.1717.9217.92
#FFFFFF1.171.0021.0021.00
#00000017.9221.001.001.00
##00000017.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE914
Deuteranopia (green-blind)
#FFF04E
Tritanopia (blue-blind)
#FFE3D1
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #f9f340;
/* rgb */ color: rgb(249, 243, 64);
/* oklch */ color: oklch(94.0% 0.185 107.5);
Tailwind
colors: {
  custom: {
    50: '#fff682',
    500: '#f9f340',
    950: '#000000',
  },
}
SCSS
$custom: #f9f340;
$custom-light: #fff682;
$custom-dark: #000000;
JSON
{
  "hex": "#f9f340",
  "rgb": {
    "r": 249,
    "g": 243,
    "b": 64
  },
  "hsl": {
    "h": 58.054,
    "s": 93.909,
    "l": 61.373
  },
  "oklch": {
    "l": 0.93999,
    "c": 0.18517,
    "h": 107.5
  },
  "luminance": 0.84611
}

Semantic roles & 50–950 ramp

primary
#F9F340
secondary
#262BB7
accent
#07E600
background
#FFFFFC
surface
#FFFEF3
border
#D7D6CD
text
#19170C
muted
#87857F

Preview Lab

Preview with #F9F340

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

Preview Lab → · Contrast checker → · Palette generator →

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