#FEF397#FEF397

#FEF397 is a very light, moderate yellow. Relative luminance 0.874; OKLCH L 95.3% C 0.114 H 102.4°. Best body text is #000000 at 18.48:1 contrast (WCAG AA passes).

Color values

HEX#FEF397
RGBrgb(254, 243, 151)
HSLhsl(54, 98%, 79%)
HSVhsv(54, 41%, 100%)
CMYKcmyk(0%, 4.3%, 40.6%, 0.4%)
CIE-LABlab(94.91, -8.93, 45.63)
CIE-LCHlch(94.91, 46.49, 101.07°)
OKLaboklab(95.3% -0.0244 0.1111)
OKLCHoklch(95.3% 0.114 102.4)
XYZxyz(78.5111, 87.4085, 42.0080)
Luminance0.8741 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF397 #97A2FE
analogous
#FEC097 #FEF397 #D6FE97
triadic
#FEF397 #97FEF3 #F397FE
tetradic
#FEF397 #97FEC0 #97A2FE #FE97D6
square
#FEF397 #97FEC0 #97A2FE #FE97D6
split-complementary
#FEF397 #97D6FE #C097FE
monochromatic
#FDE51E #FDEC5A #FEF397 #FFFAD4 #FFFCE1

Accessibility & contrast

On white

1.14
#FEF397 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.48
#FEF397 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF397
18.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF397#FFFFFF#000000##000000
##FEF3971.001.1418.4818.48
#FFFFFF1.141.0021.0021.00
#00000018.4821.001.001.00
##00000018.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED90
Deuteranopia (green-blind)
#FFF39B
Tritanopia (blue-blind)
#FFE7DC
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #fef397;
/* rgb */ color: rgb(254, 243, 151);
/* oklch */ color: oklch(95.3% 0.114 102.4);
Tailwind
colors: {
  custom: {
    50: '#fff6b7',
    500: '#fef397',
    950: '#000000',
  },
}
SCSS
$custom: #fef397;
$custom-light: #fff6b7;
$custom-dark: #000000;
JSON
{
  "hex": "#fef397",
  "rgb": {
    "r": 254,
    "g": 243,
    "b": 151
  },
  "hsl": {
    "h": 53.592,
    "s": 98.095,
    "l": 79.412
  },
  "oklch": {
    "l": 0.95303,
    "c": 0.11369,
    "h": 102.4
  },
  "luminance": 0.87406
}

Semantic roles & 50–950 ramp

primary
#FEF397
secondary
#5967E0
accent
#19E600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181711
muted
#868581

Preview Lab

Preview with #FEF397

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

Preview Lab → · Contrast checker → · Palette generator →

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