#FEF997#FEF997

#FEF997 is a very light, vivid yellow. Relative luminance 0.911; OKLCH L 96.5% C 0.120 H 105.9°. Best body text is #000000 at 19.21:1 contrast (WCAG AA passes).

Color values

HEX#FEF997
RGBrgb(254, 249, 151)
HSLhsl(57, 98%, 79%)
HSVhsv(57, 41%, 100%)
CMYKcmyk(0%, 2%, 40.6%, 0.4%)
CIE-LABlab(96.43, -11.88, 47.55)
CIE-LCHlch(96.43, 49.02, 104.03°)
OKLaboklab(96.51% -0.0329 0.1154)
OKLCHoklch(96.51% 0.12 105.9)
XYZxyz(80.3360, 91.0585, 42.6163)
Luminance0.9106 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF997 #979CFE
analogous
#FEC697 #FEF997 #D0FE97
triadic
#FEF997 #97FEF9 #F997FE
tetradic
#FEF997 #97FEC6 #979CFE #FE97D0
square
#FEF997 #97FEC6 #979CFE #FE97D0
split-complementary
#FEF997 #97D0FE #C697FE
monochromatic
#FDF21E #FDF65A #FEF997 #FFFCD4 #FFFDE1

Accessibility & contrast

On white

1.09
#FEF997 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.21
#FEF997 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF997
19.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF997#FFFFFF#000000##000000
##FEF9971.001.0919.2119.21
#FFFFFF1.091.0021.0021.00
#00000019.2121.001.001.00
##00000019.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF28F
Deuteranopia (green-blind)
#FFF79B
Tritanopia (blue-blind)
#FFEDE1
Achromatopsia (no color)
#F5F5F5

Design tokens & code

CSS
--color: #fef997;
/* rgb */ color: rgb(254, 249, 151);
/* oklch */ color: oklch(96.5% 0.120 105.9);
Tailwind
colors: {
  custom: {
    50: '#fffbb7',
    500: '#fef997',
    950: '#000000',
  },
}
SCSS
$custom: #fef997;
$custom-light: #fffbb7;
$custom-dark: #000000;
JSON
{
  "hex": "#fef997",
  "rgb": {
    "r": 254,
    "g": 249,
    "b": 151
  },
  "hsl": {
    "h": 57.087,
    "s": 98.095,
    "l": 79.412
  },
  "oklch": {
    "l": 0.96511,
    "c": 0.12,
    "h": 105.9
  },
  "luminance": 0.91057
}

Semantic roles & 50–950 ramp

primary
#FEF997
secondary
#5960E0
accent
#0BE600
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181711
muted
#868581

Preview Lab

Preview with #FEF997

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

Preview Lab → · Contrast checker → · Palette generator →

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