#FEF09D#FEF09D

#FEF09D is a very light, moderate yellow. Relative luminance 0.858; OKLCH L 94.8% C 0.104 H 99.8°. Best body text is #000000 at 18.17:1 contrast (WCAG AA passes).

Color values

HEX#FEF09D
RGBrgb(254, 240, 157)
HSLhsl(51, 98%, 81%)
HSVhsv(51, 38%, 100%)
CMYKcmyk(0%, 5.5%, 38.2%, 0.4%)
CIE-LABlab(94.24, -6.81, 41.82)
CIE-LCHlch(94.24, 42.37, 99.25°)
OKLaboklab(94.8% -0.0178 0.1026)
OKLCHoklch(94.8% 0.104 99.8)
XYZxyz(78.1203, 85.8275, 44.3430)
Luminance0.8582 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF09D #9DABFE
analogous
#FEBF9D #FEF09D #DBFE9D
triadic
#FEF09D #9DFEF0 #F09DFE
tetradic
#FEF09D #9DFEBF #9DABFE #FE9DDB
square
#FEF09D #9DFEBF #9DABFE #FE9DDB
split-complementary
#FEF09D #9DDBFE #BF9DFE
monochromatic
#FDDD24 #FDE760 #FEF09D #FFF9DA #FFFAE1

Accessibility & contrast

On white

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

On black

18.17
#FEF09D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF09D
18.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF09D#FFFFFF#000000##000000
##FEF09D1.001.1618.1718.17
#FFFFFF1.161.0021.0021.00
#00000018.1721.001.001.00
##00000018.1721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #fef09d;
/* rgb */ color: rgb(254, 240, 157);
/* oklch */ color: oklch(94.8% 0.104 99.8);
Tailwind
colors: {
  custom: {
    50: '#fff4bb',
    500: '#fef09d',
    950: '#000000',
  },
}
SCSS
$custom: #fef09d;
$custom-light: #fff4bb;
$custom-dark: #000000;
JSON
{
  "hex": "#fef09d",
  "rgb": {
    "r": 254,
    "g": 240,
    "b": 157
  },
  "hsl": {
    "h": 51.34,
    "s": 97.98,
    "l": 80.588
  },
  "oklch": {
    "l": 0.94798,
    "c": 0.10415,
    "h": 99.8
  },
  "luminance": 0.85825
}

Semantic roles & 50–950 ramp

primary
#FEF09D
secondary
#5E71E1
accent
#21E600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181712
muted
#868582

Preview Lab

Preview with #FEF09D

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

Preview Lab → · Contrast checker → · Palette generator →

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