#FEF09F#FEF09F

#FEF09F is a very light, moderate yellow. Relative luminance 0.859; OKLCH L 94.8% C 0.102 H 99.6°. Best body text is #000000 at 18.18:1 contrast (WCAG AA passes).

Color values

HEX#FEF09F
RGBrgb(254, 240, 159)
HSLhsl(51, 98%, 81%)
HSVhsv(51, 37%, 100%)
CMYKcmyk(0%, 5.5%, 37.4%, 0.4%)
CIE-LABlab(94.27, -6.59, 40.87)
CIE-LCHlch(94.27, 41.40, 99.16°)
OKLaboklab(94.83% -0.017 0.1005)
OKLCHoklch(94.83% 0.102 99.6)
XYZxyz(78.2925, 85.8964, 45.2496)
Luminance0.8589 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF09F #9FADFE
analogous
#FEC09F #FEF09F #DCFE9F
triadic
#FEF09F #9FFEF0 #F09FFE
tetradic
#FEF09F #9FFEC0 #9FADFE #FE9FDC
square
#FEF09F #9FFEC0 #9FADFE #FE9FDC
split-complementary
#FEF09F #9FDCFE #C09FFE
monochromatic
#FDDD26 #FDE762 #FEF09F #FFF9DC #FFFAE1

Accessibility & contrast

On white

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

On black

18.18
#FEF09F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF09F
18.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF09F#FFFFFF#000000##000000
##FEF09F1.001.1618.1818.18
#FFFFFF1.161.0021.0021.00
#00000018.1821.001.001.00
##00000018.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB99
Deuteranopia (green-blind)
#FFF1A2
Tritanopia (blue-blind)
#FFE5DC
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #fef09f;
/* rgb */ color: rgb(254, 240, 159);
/* oklch */ color: oklch(94.8% 0.102 99.6);
Tailwind
colors: {
  custom: {
    50: '#fff4bc',
    500: '#fef09f',
    950: '#000000',
  },
}
SCSS
$custom: #fef09f;
$custom-light: #fff4bc;
$custom-dark: #000000;
JSON
{
  "hex": "#fef09f",
  "rgb": {
    "r": 254,
    "g": 240,
    "b": 159
  },
  "hsl": {
    "h": 51.158,
    "s": 97.938,
    "l": 80.98
  },
  "oklch": {
    "l": 0.94831,
    "c": 0.10194,
    "h": 99.6
  },
  "luminance": 0.85894
}

Semantic roles & 50–950 ramp

primary
#FEF09F
secondary
#6073E1
accent
#22E600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181712
muted
#868582

Preview Lab

Preview with #FEF09F

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

Preview Lab → · Contrast checker → · Palette generator →

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