#F9F170#F9F170

#F9F170 is a very light, vivid yellow. Relative luminance 0.842; OKLCH L 94.0% C 0.150 H 105.7°. Best body text is #000000 at 17.84:1 contrast (WCAG AA passes).

Color values

HEX#F9F170
RGBrgb(249, 241, 112)
HSLhsl(56, 92%, 71%)
HSVhsv(56, 55%, 98%)
CMYKcmyk(0%, 3.2%, 55%, 2.4%)
CIE-LABlab(93.55, -13.35, 62.13)
CIE-LCHlch(93.55, 63.55, 102.13°)
OKLaboklab(93.98% -0.0405 0.1444)
OKLCHoklch(93.98% 0.15 105.7)
XYZxyz(73.4491, 84.2225, 27.7136)
Luminance0.8422 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F9F170 #7078F9
analogous
#F9AC70 #F9F170 #BDF970
triadic
#F9F170 #70F9F1 #F170F9
tetradic
#F9F170 #70F9AC #7078F9 #F970BD
square
#F9F170 #70F9AC #7078F9 #F970BD
split-complementary
#F9F170 #70BDF9 #AC70F9
monochromatic
#E5D80A #F7EB35 #F9F170 #FBF7AB #FEFCE2

Accessibility & contrast

On white

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

On black

17.84
#F9F170 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F9F170
17.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F9F170#FFFFFF#000000##000000
##F9F1701.001.1817.8417.84
#FFFFFF1.181.0021.0021.00
#00000017.8421.001.001.00
##00000017.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE963
Deuteranopia (green-blind)
#FFEF77
Tritanopia (blue-blind)
#FFE3D4
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #f9f170;
/* rgb */ color: rgb(249, 241, 112);
/* oklch */ color: oklch(94.0% 0.150 105.7);
Tailwind
colors: {
  custom: {
    50: '#fef59d',
    500: '#f9f170',
    950: '#000000',
  },
}
SCSS
$custom: #f9f170;
$custom-light: #fef59d;
$custom-dark: #000000;
JSON
{
  "hex": "#f9f170",
  "rgb": {
    "r": 249,
    "g": 241,
    "b": 112
  },
  "hsl": {
    "h": 56.496,
    "s": 91.946,
    "l": 70.784
  },
  "oklch": {
    "l": 0.93975,
    "c": 0.15001,
    "h": 105.7
  },
  "luminance": 0.8422
}

Semantic roles & 50–950 ramp

primary
#F9F170
secondary
#3942D4
accent
#0DE600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F9F170

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

Preview Lab → · Contrast checker → · Palette generator →

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