#FEF792#FEF792

#FEF792 is a very light, vivid yellow. Relative luminance 0.897; OKLCH L 96.0% C 0.123 H 105.0°. Best body text is #000000 at 18.93:1 contrast (WCAG AA passes).

Color values

HEX#FEF792
RGBrgb(254, 247, 146)
HSLhsl(56, 98%, 78%)
HSVhsv(56, 43%, 100%)
CMYKcmyk(0%, 2.8%, 42.5%, 0.4%)
CIE-LABlab(95.86, -11.40, 49.24)
CIE-LCHlch(95.86, 50.55, 103.04°)
OKLaboklab(96.03% -0.0319 0.1189)
OKLCHoklch(96.03% 0.123 105)
XYZxyz(79.3237, 89.6697, 40.3180)
Luminance0.8967 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF792 #9299FE
analogous
#FEC192 #FEF792 #CFFE92
triadic
#FEF792 #92FEF7 #F792FE
tetradic
#FEF792 #92FEC1 #9299FE #FE92CF
square
#FEF792 #92FEC1 #9299FE #FE92CF
split-complementary
#FEF792 #92CFFE #C192FE
monochromatic
#FDEE19 #FDF355 #FEF792 #FFFBCF #FFFDE1

Accessibility & contrast

On white

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

On black

18.93
#FEF792 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF792
18.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF792#FFFFFF#000000##000000
##FEF7921.001.1118.9318.93
#FFFFFF1.111.0021.0021.00
#00000018.9321.001.001.00
##00000018.9321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #fef792;
/* rgb */ color: rgb(254, 247, 146);
/* oklch */ color: oklch(96.0% 0.123 105.0);
Tailwind
colors: {
  custom: {
    50: '#fff9b3',
    500: '#fef792',
    950: '#000000',
  },
}
SCSS
$custom: #fef792;
$custom-light: #fff9b3;
$custom-dark: #000000;
JSON
{
  "hex": "#fef792",
  "rgb": {
    "r": 254,
    "g": 247,
    "b": 146
  },
  "hsl": {
    "h": 56.111,
    "s": 98.182,
    "l": 78.431
  },
  "oklch": {
    "l": 0.96033,
    "c": 0.12313,
    "h": 105
  },
  "luminance": 0.89668
}

Semantic roles & 50–950 ramp

primary
#FEF792
secondary
#555EDF
accent
#0FE600
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181711
muted
#868581

Preview Lab

Preview with #FEF792

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

Preview Lab → · Contrast checker → · Palette generator →

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