#FEF796#FEF796

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

Color values

HEX#FEF796
RGBrgb(254, 247, 150)
HSLhsl(56, 98%, 79%)
HSVhsv(56, 41%, 100%)
CMYKcmyk(0%, 2.8%, 40.9%, 0.4%)
CIE-LABlab(95.91, -11.00, 47.38)
CIE-LCHlch(95.91, 48.64, 103.07°)
OKLaboklab(96.09% -0.0304 0.115)
OKLCHoklch(96.09% 0.119 104.8)
XYZxyz(79.6403, 89.7964, 41.9854)
Luminance0.8979 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF796 #969DFE
analogous
#FEC396 #FEF796 #D1FE96
triadic
#FEF796 #96FEF7 #F796FE
tetradic
#FEF796 #96FEC3 #969DFE #FE96D1
square
#FEF796 #96FEC3 #969DFE #FE96D1
split-complementary
#FEF796 #96D1FE #C396FE
monochromatic
#FDEE1D #FDF259 #FEF796 #FFFCD3 #FFFDE1

Accessibility & contrast

On white

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

On black

18.96
#FEF796 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF796
18.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF796#FFFFFF#000000##000000
##FEF7961.001.1118.9618.96
#FFFFFF1.111.0021.0021.00
#00000018.9621.001.001.00
##00000018.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF08E
Deuteranopia (green-blind)
#FFF69A
Tritanopia (blue-blind)
#FFEBDF
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fef796;
/* rgb */ color: rgb(254, 247, 150);
/* oklch */ color: oklch(96.1% 0.119 104.8);
Tailwind
colors: {
  custom: {
    50: '#fff9b6',
    500: '#fef796',
    950: '#000000',
  },
}
SCSS
$custom: #fef796;
$custom-light: #fff9b6;
$custom-dark: #000000;
JSON
{
  "hex": "#fef796",
  "rgb": {
    "r": 254,
    "g": 247,
    "b": 150
  },
  "hsl": {
    "h": 55.962,
    "s": 98.113,
    "l": 79.216
  },
  "oklch": {
    "l": 0.96092,
    "c": 0.11892,
    "h": 104.8
  },
  "luminance": 0.89794
}

Semantic roles & 50–950 ramp

primary
#FEF796
secondary
#5861E0
accent
#0FE600
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181711
muted
#868581

Preview Lab

Preview with #FEF796

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

Preview Lab → · Contrast checker → · Palette generator →

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