#F1DF97#F1DF97

#F1DF97 is a very light, moderate yellow. Relative luminance 0.737; OKLCH L 90.2% C 0.093 H 95.8°. Best body text is #000000 at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#F1DF97
RGBrgb(241, 223, 151)
HSLhsl(48, 76%, 77%)
HSVhsv(48, 37%, 95%)
CMYKcmyk(0%, 7.5%, 37.3%, 5.5%)
CIE-LABlab(88.79, -3.93, 37.54)
CIE-LCHlch(88.79, 37.74, 95.97°)
OKLaboklab(90.2% -0.0094 0.0926)
OKLCHoklch(90.2% 0.093 95.8)
XYZxyz(68.2505, 73.7126, 39.9049)
Luminance0.7371 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F1DF97 #97A9F1
analogous
#F1B297 #F1DF97 #D6F197
triadic
#F1DF97 #97F1DF #DF97F1
tetradic
#F1DF97 #97F1B2 #97A9F1 #F197D6
square
#F1DF97 #97F1B2 #97A9F1 #F197D6
split-complementary
#F1DF97 #97D6F1 #B297F1
monochromatic
#E2BE2B #EACE61 #F1DF97 #F8F0CD #FBF7E4

Accessibility & contrast

On white

1.33
#F1DF97 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.74
#F1DF97 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F1DF97
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F1DF97#FFFFFF#000000##000000
##F1DF971.001.3315.7415.74
#FFFFFF1.331.0021.0021.00
#00000015.7421.001.001.00
##00000015.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#EDDB92
Deuteranopia (green-blind)
#F2E29A
Tritanopia (blue-blind)
#FED5CD
Achromatopsia (no color)
#DFDFDF

Design tokens & code

CSS
--color: #f1df97;
/* rgb */ color: rgb(241, 223, 151);
/* oklch */ color: oklch(90.2% 0.093 95.8);
Tailwind
colors: {
  custom: {
    50: '#f7e8b6',
    500: '#f1df97',
    950: '#000000',
  },
}
SCSS
$custom: #f1df97;
$custom-light: #f7e8b6;
$custom-dark: #000000;
JSON
{
  "hex": "#f1df97",
  "rgb": {
    "r": 241,
    "g": 223,
    "b": 151
  },
  "hsl": {
    "h": 48,
    "s": 76.271,
    "l": 76.863
  },
  "oklch": {
    "l": 0.902,
    "c": 0.09307,
    "h": 95.8
  },
  "luminance": 0.7371
}

Semantic roles & 50–950 ramp

primary
#F1DF97
secondary
#5E74CE
accent
#36D80D
background
#FFFEFD
surface
#FFFCF8
border
#D7D5D1
text
#171611
muted
#858481

Preview Lab

Preview with #F1DF97

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

Preview Lab → · Contrast checker → · Palette generator →

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