#FEF179#FEF179

#FEF179 is a very light, vivid yellow. Relative luminance 0.854; OKLCH L 94.5% C 0.142 H 103.1°. Best body text is #000000 at 18.07:1 contrast (WCAG AA passes).

Color values

HEX#FEF179
RGBrgb(254, 241, 121)
HSLhsl(54, 99%, 74%)
HSVhsv(54, 52%, 100%)
CMYKcmyk(0%, 5.1%, 52.4%, 0.4%)
CIE-LABlab(94.04, -10.67, 58.76)
CIE-LCHlch(94.04, 59.72, 100.29°)
OKLaboklab(94.49% -0.0322 0.138)
OKLCHoklch(94.49% 0.142 103.1)
XYZxyz(75.7818, 85.3644, 30.5706)
Luminance0.8536 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF179 #7986FE
analogous
#FEAE79 #FEF179 #C8FE79
triadic
#FEF179 #79FEF1 #F179FE
tetradic
#FEF179 #79FEAE #7986FE #FE79C8
square
#FEF179 #79FEAE #7986FE #FE79C8
split-complementary
#FEF179 #79C8FE #AE79FE
monochromatic
#FBE202 #FEEB3C #FEF179 #FEF7B6 #FFFCE1

Accessibility & contrast

On white

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

On black

18.07
#FEF179 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF179
18.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF179#FFFFFF#000000##000000
##FEF1791.001.1618.0718.07
#FFFFFF1.161.0021.0021.00
#00000018.0721.001.001.00
##00000018.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEA6E
Deuteranopia (green-blind)
#FFF17F
Tritanopia (blue-blind)
#FFE3D6
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #fef179;
/* rgb */ color: rgb(254, 241, 121);
/* oklch */ color: oklch(94.5% 0.142 103.1);
Tailwind
colors: {
  custom: {
    50: '#fff5a3',
    500: '#fef179',
    950: '#000000',
  },
}
SCSS
$custom: #fef179;
$custom-light: #fff5a3;
$custom-dark: #000000;
JSON
{
  "hex": "#fef179",
  "rgb": {
    "r": 254,
    "g": 241,
    "b": 121
  },
  "hsl": {
    "h": 54.135,
    "s": 98.519,
    "l": 73.529
  },
  "oklch": {
    "l": 0.94493,
    "c": 0.14171,
    "h": 103.1
  },
  "luminance": 0.85362
}

Semantic roles & 50–950 ramp

primary
#FEF179
secondary
#3F4FDC
accent
#16E600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF179

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

Preview Lab → · Contrast checker → · Palette generator →

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