#FEF398#FEF398

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

Color values

HEX#FEF398
RGBrgb(254, 243, 152)
HSLhsl(54, 98%, 80%)
HSVhsv(54, 40%, 100%)
CMYKcmyk(0%, 4.3%, 40.2%, 0.4%)
CIE-LABlab(94.93, -8.83, 45.16)
CIE-LCHlch(94.93, 46.01, 101.06°)
OKLaboklab(95.32% -0.024 0.11)
OKLCHoklch(95.32% 0.113 102.3)
XYZxyz(78.5926, 87.4412, 42.4375)
Luminance0.8744 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF398 #98A3FE
analogous
#FEC098 #FEF398 #D6FE98
triadic
#FEF398 #98FEF3 #F398FE
tetradic
#FEF398 #98FEC0 #98A3FE #FE98D6
square
#FEF398 #98FEC0 #98A3FE #FE98D6
split-complementary
#FEF398 #98D6FE #C098FE
monochromatic
#FDE51F #FDEC5B #FEF398 #FFFAD5 #FFFBE1

Accessibility & contrast

On white

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

On black

18.49
#FEF398 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF398
18.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF398#FFFFFF#000000##000000
##FEF3981.001.1418.4918.49
#FFFFFF1.141.0021.0021.00
#00000018.4921.001.001.00
##00000018.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED91
Deuteranopia (green-blind)
#FFF39C
Tritanopia (blue-blind)
#FFE7DD
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #fef398;
/* rgb */ color: rgb(254, 243, 152);
/* oklch */ color: oklch(95.3% 0.113 102.3);
Tailwind
colors: {
  custom: {
    50: '#fff6b7',
    500: '#fef398',
    950: '#000000',
  },
}
SCSS
$custom: #fef398;
$custom-light: #fff6b7;
$custom-dark: #000000;
JSON
{
  "hex": "#fef398",
  "rgb": {
    "r": 254,
    "g": 243,
    "b": 152
  },
  "hsl": {
    "h": 53.529,
    "s": 98.077,
    "l": 79.608
  },
  "oklch": {
    "l": 0.95318,
    "c": 0.11261,
    "h": 102.3
  },
  "luminance": 0.87439
}

Semantic roles & 50–950 ramp

primary
#FEF398
secondary
#5A68E0
accent
#19E600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181711
muted
#868581

Preview Lab

Preview with #FEF398

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

Preview Lab → · Contrast checker → · Palette generator →

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