#F9F172#F9F172

#F9F172 is a very light, vivid yellow. Relative luminance 0.843; OKLCH L 94.0% C 0.148 H 105.6°. Best body text is #000000 at 17.85:1 contrast (WCAG AA passes).

Color values

HEX#F9F172
RGBrgb(249, 241, 114)
HSLhsl(56, 92%, 71%)
HSVhsv(56, 54%, 98%)
CMYKcmyk(0%, 3.2%, 54.2%, 2.4%)
CIE-LABlab(93.57, -13.20, 61.26)
CIE-LCHlch(93.57, 62.67, 102.16°)
OKLaboklab(94% -0.0399 0.1428)
OKLCHoklch(94% 0.148 105.6)
XYZxyz(73.5617, 84.2675, 28.3066)
Luminance0.8427 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F9F172 #727AF9
analogous
#F9AD72 #F9F172 #BDF972
triadic
#F9F172 #72F9F1 #F172F9
tetradic
#F9F172 #72F9AD #727AF9 #F972BD
square
#F9F172 #72F9AD #727AF9 #F972BD
split-complementary
#F9F172 #72BDF9 #AD72F9
monochromatic
#E7DA0A #F7EB37 #F9F172 #FBF7AD #FEFCE2

Accessibility & contrast

On white

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

On black

17.85
#F9F172 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F9F172
17.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F9F172#FFFFFF#000000##000000
##F9F1721.001.1817.8517.85
#FFFFFF1.181.0021.0021.00
#00000017.8521.001.001.00
##00000017.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE965
Deuteranopia (green-blind)
#FFEF79
Tritanopia (blue-blind)
#FFE3D5
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #f9f172;
/* rgb */ color: rgb(249, 241, 114);
/* oklch */ color: oklch(94.0% 0.148 105.6);
Tailwind
colors: {
  custom: {
    50: '#fef59e',
    500: '#f9f172',
    950: '#000000',
  },
}
SCSS
$custom: #f9f172;
$custom-light: #fef59e;
$custom-dark: #000000;
JSON
{
  "hex": "#f9f172",
  "rgb": {
    "r": 249,
    "g": 241,
    "b": 114
  },
  "hsl": {
    "h": 56.444,
    "s": 91.837,
    "l": 71.176
  },
  "oklch": {
    "l": 0.93997,
    "c": 0.14825,
    "h": 105.6
  },
  "luminance": 0.84265
}

Semantic roles & 50–950 ramp

primary
#F9F172
secondary
#3B44D4
accent
#0EE600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F9F172

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

Preview Lab → · Contrast checker → · Palette generator →

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