#FEF209#FEF209

#FEF209 is a very light, vivid yellow. Relative luminance 0.846; OKLCH L 94.0% C 0.200 H 106.0°. Best body text is #000000 at 17.92:1 contrast (WCAG AA passes).

Color values

HEX#FEF209
RGBrgb(254, 242, 9)
HSLhsl(57, 99%, 52%)
HSVhsv(57, 96%, 100%)
CMYKcmyk(0%, 4.7%, 96.5%, 0.4%)
CIE-LABlab(93.71, -15.67, 91.28)
CIE-LCHlch(93.71, 92.62, 99.74°)
OKLaboklab(94.04% -0.0549 0.1919)
OKLCHoklch(94.04% 0.2 106)
XYZxyz(72.6779, 84.5978, 12.7591)
Luminance0.8459 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF209 #0915FE
analogous
#FE7809 #FEF209 #90FE09
triadic
#FEF209 #09FEF2 #F209FE
tetradic
#FEF209 #09FE78 #0915FE #FE0990
square
#FEF209 #09FE78 #0915FE #FE0990
split-complementary
#FEF209 #0990FE #7809FE
monochromatic
#8C8501 #C9BF01 #FEF209 #FEF546 #FEF883

Accessibility & contrast

On white

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

On black

17.92
#FEF209 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF209
17.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF209#FFFFFF#000000##000000
##FEF2091.001.1717.9217.92
#FFFFFF1.171.0021.0021.00
#00000017.9221.001.001.00
##00000017.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE900
Deuteranopia (green-blind)
#FFF030
Tritanopia (blue-blind)
#FFE1CE
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #fef209;
/* rgb */ color: rgb(254, 242, 9);
/* oklch */ color: oklch(94.0% 0.200 106.0);
Tailwind
colors: {
  custom: {
    50: '#fff572',
    500: '#fef209',
    950: '#000000',
  },
}
SCSS
$custom: #fef209;
$custom-light: #fff572;
$custom-dark: #000000;
JSON
{
  "hex": "#fef209",
  "rgb": {
    "r": 254,
    "g": 242,
    "b": 9
  },
  "hsl": {
    "h": 57.061,
    "s": 99.19,
    "l": 51.569
  },
  "oklch": {
    "l": 0.94043,
    "c": 0.19959,
    "h": 106
  },
  "luminance": 0.84595
}

Semantic roles & 50–950 ramp

primary
#FEF209
secondary
#1A2091
accent
#33FF29
background
#FFFFFB
surface
#FFFEF1
border
#D7D6CB
text
#19170A
muted
#87857D

Preview Lab

Preview with #FEF209

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

Preview Lab → · Contrast checker → · Palette generator →

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