#F9F271#F9F271

#F9F271 is a very light, vivid yellow. Relative luminance 0.848; OKLCH L 94.2% C 0.150 H 106.1°. Best body text is #000000 at 17.97:1 contrast (WCAG AA passes).

Color values

HEX#F9F271
RGBrgb(249, 242, 113)
HSLhsl(57, 92%, 71%)
HSVhsv(57, 55%, 98%)
CMYKcmyk(0%, 2.8%, 54.6%, 2.4%)
CIE-LABlab(93.81, -13.77, 61.99)
CIE-LCHlch(93.81, 63.50, 102.52°)
OKLaboklab(94.19% -0.0416 0.1443)
OKLCHoklch(94.19% 0.15 106.1)
XYZxyz(73.8019, 84.8385, 28.1074)
Luminance0.8484 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F9F271 #7178F9
analogous
#F9AE71 #F9F271 #BCF971
triadic
#F9F271 #71F9F2 #F271F9
tetradic
#F9F271 #71F9AE #7178F9 #F971BC
square
#F9F271 #71F9AE #7178F9 #F971BC
split-complementary
#F9F271 #71BCF9 #AE71F9
monochromatic
#E6DB0A #F7ED36 #F9F271 #FBF7AC #FEFCE2

Accessibility & contrast

On white

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

On black

17.97
#F9F271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F9F271
17.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F9F271#FFFFFF#000000##000000
##F9F2711.001.1717.9717.97
#FFFFFF1.171.0021.0021.00
#00000017.9721.001.001.00
##00000017.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEA64
Deuteranopia (green-blind)
#FFF078
Tritanopia (blue-blind)
#FFE4D5
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #f9f271;
/* rgb */ color: rgb(249, 242, 113);
/* oklch */ color: oklch(94.2% 0.150 106.1);
Tailwind
colors: {
  custom: {
    50: '#fef69e',
    500: '#f9f271',
    950: '#000000',
  },
}
SCSS
$custom: #f9f271;
$custom-light: #fef69e;
$custom-dark: #000000;
JSON
{
  "hex": "#f9f271",
  "rgb": {
    "r": 249,
    "g": 242,
    "b": 113
  },
  "hsl": {
    "h": 56.912,
    "s": 91.892,
    "l": 70.98
  },
  "oklch": {
    "l": 0.9419,
    "c": 0.15013,
    "h": 106.1
  },
  "luminance": 0.84836
}

Semantic roles & 50–950 ramp

primary
#F9F271
secondary
#3A42D4
accent
#0CE600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F9F271

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

Preview Lab → · Contrast checker → · Palette generator →

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