#F9F240#F9F240

#F9F240 is a very light, vivid yellow. Relative luminance 0.840; OKLCH L 93.8% C 0.184 H 107.1°. Best body text is #000000 at 17.80:1 contrast (WCAG AA passes).

Color values

HEX#F9F240
RGBrgb(249, 242, 64)
HSLhsl(58, 94%, 61%)
HSVhsv(58, 74%, 98%)
CMYKcmyk(0%, 2.8%, 74.3%, 2.4%)
CIE-LABlab(93.46, -16.54, 80.42)
CIE-LCHlch(93.46, 82.11, 101.62°)
OKLaboklab(93.79% -0.0543 0.1761)
OKLCHoklch(93.79% 0.184 107.1)
XYZxyz(71.7474, 84.0167, 17.2870)
Luminance0.8401 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F9F240 #4047F9
analogous
#F99640 #F9F240 #A4F940
triadic
#F9F240 #40F9F2 #F240F9
tetradic
#F9F240 #40F996 #4047F9 #F940A4
square
#F9F240 #40F996 #4047F9 #F940A4
split-complementary
#F9F240 #40A4F9 #9640F9
monochromatic
#B9B206 #F4EB08 #F9F240 #FBF67B #FDFAB7

Accessibility & contrast

On white

1.18
#F9F240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.80
#F9F240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F9F240
17.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F9F240#FFFFFF#000000##000000
##F9F2401.001.1817.8017.80
#FFFFFF1.181.0021.0021.00
#00000017.8021.001.001.00
##00000017.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE915
Deuteranopia (green-blind)
#FFEF4E
Tritanopia (blue-blind)
#FFE2D0
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #f9f240;
/* rgb */ color: rgb(249, 242, 64);
/* oklch */ color: oklch(93.8% 0.184 107.1);
Tailwind
colors: {
  custom: {
    50: '#fff682',
    500: '#f9f240',
    950: '#000000',
  },
}
SCSS
$custom: #f9f240;
$custom-light: #fff682;
$custom-dark: #000000;
JSON
{
  "hex": "#f9f240",
  "rgb": {
    "r": 249,
    "g": 242,
    "b": 64
  },
  "hsl": {
    "h": 57.73,
    "s": 93.909,
    "l": 61.373
  },
  "oklch": {
    "l": 0.93793,
    "c": 0.18427,
    "h": 107.1
  },
  "luminance": 0.84014
}

Semantic roles & 50–950 ramp

primary
#F9F240
secondary
#262BB7
accent
#09E600
background
#FFFFFB
surface
#FFFEF2
border
#D7D6CC
text
#19170B
muted
#87857E

Preview Lab

Preview with #F9F240

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

Preview Lab → · Contrast checker → · Palette generator →

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