#FEF09A#FEF09A

#FEF09A is a very light, moderate yellow. Relative luminance 0.857; OKLCH L 94.7% C 0.107 H 100.2°. Best body text is #000000 at 18.14:1 contrast (WCAG AA passes).

Color values

HEX#FEF09A
RGBrgb(254, 240, 154)
HSLhsl(52, 98%, 80%)
HSVhsv(52, 39%, 100%)
CMYKcmyk(0%, 5.5%, 39.4%, 0.4%)
CIE-LABlab(94.20, -7.13, 43.25)
CIE-LCHlch(94.20, 43.83, 99.36°)
OKLaboklab(94.75% -0.0189 0.1058)
OKLCHoklch(94.75% 0.107 100.2)
XYZxyz(77.8674, 85.7264, 43.0106)
Luminance0.8572 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF09A #9AA8FE
analogous
#FEBE9A #FEF09A #DAFE9A
triadic
#FEF09A #9AFEF0 #F09AFE
tetradic
#FEF09A #9AFEBE #9AA8FE #FE9ADA
square
#FEF09A #9AFEBE #9AA8FE #FE9ADA
split-complementary
#FEF09A #9ADAFE #BE9AFE
monochromatic
#FDDE21 #FDE75D #FEF09A #FFF9D7 #FFFAE1

Accessibility & contrast

On white

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

On black

18.14
#FEF09A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF09A
18.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF09A#FFFFFF#000000##000000
##FEF09A1.001.1618.1418.14
#FFFFFF1.161.0021.0021.00
#00000018.1421.001.001.00
##00000018.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB94
Deuteranopia (green-blind)
#FFF19D
Tritanopia (blue-blind)
#FFE5DB
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #fef09a;
/* rgb */ color: rgb(254, 240, 154);
/* oklch */ color: oklch(94.7% 0.107 100.2);
Tailwind
colors: {
  custom: {
    50: '#fff4b9',
    500: '#fef09a',
    950: '#000000',
  },
}
SCSS
$custom: #fef09a;
$custom-light: #fff4b9;
$custom-dark: #000000;
JSON
{
  "hex": "#fef09a",
  "rgb": {
    "r": 254,
    "g": 240,
    "b": 154
  },
  "hsl": {
    "h": 51.6,
    "s": 98.039,
    "l": 80
  },
  "oklch": {
    "l": 0.94749,
    "c": 0.10744,
    "h": 100.2
  },
  "luminance": 0.85724
}

Semantic roles & 50–950 ramp

primary
#FEF09A
secondary
#5C6EE1
accent
#20E600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181711
muted
#868581

Preview Lab

Preview with #FEF09A

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

Preview Lab → · Contrast checker → · Palette generator →

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