#FEF879#FEF879

#FEF879 is a very light, vivid yellow. Relative luminance 0.896; OKLCH L 95.9% C 0.149 H 106.4°. Best body text is #000000 at 18.92:1 contrast (WCAG AA passes).

Color values

HEX#FEF879
RGBrgb(254, 248, 121)
HSLhsl(57, 99%, 74%)
HSVhsv(57, 52%, 100%)
CMYKcmyk(0%, 2.4%, 52.4%, 0.4%)
CIE-LABlab(95.83, -14.10, 60.84)
CIE-LCHlch(95.83, 62.46, 103.05°)
OKLaboklab(95.91% -0.042 0.1425)
OKLCHoklch(95.91% 0.149 106.4)
XYZxyz(77.8938, 89.5884, 31.2745)
Luminance0.8959 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF879 #797FFE
analogous
#FEB579 #FEF879 #C1FE79
triadic
#FEF879 #79FEF8 #F879FE
tetradic
#FEF879 #79FEB5 #797FFE #FE79C1
square
#FEF879 #79FEB5 #797FFE #FE79C1
split-complementary
#FEF879 #79C1FE #B579FE
monochromatic
#FBEF02 #FEF53C #FEF879 #FEFBB6 #FFFDE1

Accessibility & contrast

On white

1.11
#FEF879 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.92
#FEF879 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF879
18.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF879#FFFFFF#000000##000000
##FEF8791.001.1118.9218.92
#FFFFFF1.111.0021.0021.00
#00000018.9221.001.001.00
##00000018.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF06D
Deuteranopia (green-blind)
#FFF67F
Tritanopia (blue-blind)
#FFEADB
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fef879;
/* rgb */ color: rgb(254, 248, 121);
/* oklch */ color: oklch(95.9% 0.149 106.4);
Tailwind
colors: {
  custom: {
    50: '#fffaa3',
    500: '#fef879',
    950: '#000000',
  },
}
SCSS
$custom: #fef879;
$custom-light: #fffaa3;
$custom-dark: #000000;
JSON
{
  "hex": "#fef879",
  "rgb": {
    "r": 254,
    "g": 248,
    "b": 121
  },
  "hsl": {
    "h": 57.293,
    "s": 98.519,
    "l": 73.529
  },
  "oklch": {
    "l": 0.95913,
    "c": 0.14858,
    "h": 106.4
  },
  "luminance": 0.89586
}

Semantic roles & 50–950 ramp

primary
#FEF879
secondary
#3F46DC
accent
#0AE600
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF879

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

Preview Lab → · Contrast checker → · Palette generator →

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