#FEF797#FEF797

#FEF797 is a very light, moderate yellow. Relative luminance 0.898; OKLCH L 96.1% C 0.118 H 104.8°. Best body text is #000000 at 18.97:1 contrast (WCAG AA passes).

Color values

HEX#FEF797
RGBrgb(254, 247, 151)
HSLhsl(56, 98%, 79%)
HSVhsv(56, 41%, 100%)
CMYKcmyk(0%, 2.8%, 40.6%, 0.4%)
CIE-LABlab(95.93, -10.90, 46.91)
CIE-LCHlch(95.93, 48.16, 103.08°)
OKLaboklab(96.11% -0.03 0.114)
OKLCHoklch(96.11% 0.118 104.8)
XYZxyz(79.7212, 89.8287, 42.4113)
Luminance0.8983 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF797 #979EFE
analogous
#FEC497 #FEF797 #D2FE97
triadic
#FEF797 #97FEF7 #F797FE
tetradic
#FEF797 #97FEC4 #979EFE #FE97D2
square
#FEF797 #97FEC4 #979EFE #FE97D2
split-complementary
#FEF797 #97D2FE #C497FE
monochromatic
#FDEE1E #FDF25A #FEF797 #FFFCD4 #FFFDE1

Accessibility & contrast

On white

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

On black

18.97
#FEF797 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF797
18.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF797#FFFFFF#000000##000000
##FEF7971.001.1118.9718.97
#FFFFFF1.111.0021.0021.00
#00000018.9721.001.001.00
##00000018.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF190
Deuteranopia (green-blind)
#FFF69B
Tritanopia (blue-blind)
#FFEBE0
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fef797;
/* rgb */ color: rgb(254, 247, 151);
/* oklch */ color: oklch(96.1% 0.118 104.8);
Tailwind
colors: {
  custom: {
    50: '#fff9b7',
    500: '#fef797',
    950: '#000000',
  },
}
SCSS
$custom: #fef797;
$custom-light: #fff9b7;
$custom-dark: #000000;
JSON
{
  "hex": "#fef797",
  "rgb": {
    "r": 254,
    "g": 247,
    "b": 151
  },
  "hsl": {
    "h": 55.922,
    "s": 98.095,
    "l": 79.412
  },
  "oklch": {
    "l": 0.96107,
    "c": 0.11786,
    "h": 104.8
  },
  "luminance": 0.89827
}

Semantic roles & 50–950 ramp

primary
#FEF797
secondary
#5962E0
accent
#10E600
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181711
muted
#868581

Preview Lab

Preview with #FEF797

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

Preview Lab → · Contrast checker → · Palette generator →

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