#F9F372#F9F372

#F9F372 is a very light, vivid yellow. Relative luminance 0.855; OKLCH L 94.4% C 0.150 H 106.5°. Best body text is #000000 at 18.09:1 contrast (WCAG AA passes).

Color values

HEX#F9F372
RGBrgb(249, 243, 114)
HSLhsl(57, 92%, 71%)
HSVhsv(57, 54%, 98%)
CMYKcmyk(0%, 2.4%, 54.2%, 2.4%)
CIE-LABlab(94.08, -14.18, 61.85)
CIE-LCHlch(94.08, 63.46, 102.92°)
OKLaboklab(94.41% -0.0427 0.1441)
OKLCHoklch(94.41% 0.15 106.5)
XYZxyz(74.1569, 85.4580, 28.5050)
Luminance0.8546 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F9F372 #7278F9
analogous
#F9AF72 #F9F372 #BBF972
triadic
#F9F372 #72F9F3 #F372F9
tetradic
#F9F372 #72F9AF #7278F9 #F972BB
square
#F9F372 #72F9AF #7278F9 #F972BB
split-complementary
#F9F372 #72BBF9 #AF72F9
monochromatic
#E7DD0A #F7EE37 #F9F372 #FBF8AD #FEFDE2

Accessibility & contrast

On white

1.16
#F9F372 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.09
#F9F372 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F9F372
18.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F9F372#FFFFFF#000000##000000
##F9F3721.001.1618.0918.09
#FFFFFF1.161.0021.0021.00
#00000018.0921.001.001.00
##00000018.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB65
Deuteranopia (green-blind)
#FFF179
Tritanopia (blue-blind)
#FFE5D6
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #f9f372;
/* rgb */ color: rgb(249, 243, 114);
/* oklch */ color: oklch(94.4% 0.150 106.5);
Tailwind
colors: {
  custom: {
    50: '#fef69e',
    500: '#f9f372',
    950: '#000000',
  },
}
SCSS
$custom: #f9f372;
$custom-light: #fef69e;
$custom-dark: #000000;
JSON
{
  "hex": "#f9f372",
  "rgb": {
    "r": 249,
    "g": 243,
    "b": 114
  },
  "hsl": {
    "h": 57.333,
    "s": 91.837,
    "l": 71.176
  },
  "oklch": {
    "l": 0.94406,
    "c": 0.15025,
    "h": 106.5
  },
  "luminance": 0.85456
}

Semantic roles & 50–950 ramp

primary
#F9F372
secondary
#3B42D4
accent
#0AE600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F9F372

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

Preview Lab → · Contrast checker → · Palette generator →

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