#FEF98C#FEF98C

#FEF98C is a very light, vivid yellow. Relative luminance 0.907; OKLCH L 96.4% C 0.131 H 106.3°. Best body text is #000000 at 19.14:1 contrast (WCAG AA passes).

Color values

HEX#FEF98C
RGBrgb(254, 249, 140)
HSLhsl(57, 98%, 77%)
HSVhsv(57, 45%, 100%)
CMYKcmyk(0%, 2%, 44.9%, 0.4%)
CIE-LABlab(96.29, -12.96, 52.64)
CIE-LCHlch(96.29, 54.21, 103.83°)
OKLaboklab(96.35% -0.0369 0.1261)
OKLCHoklch(96.35% 0.131 106.3)
XYZxyz(79.4840, 90.7177, 38.1291)
Luminance0.9072 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF98C #8C91FE
analogous
#FEC08C #FEF98C #CAFE8C
triadic
#FEF98C #8CFEF9 #F98CFE
tetradic
#FEF98C #8CFEC0 #8C91FE #FE8CCA
square
#FEF98C #8CFEC0 #8C91FE #FE8CCA
split-complementary
#FEF98C #8CCAFE #C08CFE
monochromatic
#FDF313 #FDF64F #FEF98C #FFFCC9 #FFFDE1

Accessibility & contrast

On white

1.10
#FEF98C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.14
#FEF98C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF98C
19.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF98C#FFFFFF#000000##000000
##FEF98C1.001.1019.1419.14
#FFFFFF1.101.0021.0021.00
#00000019.1421.001.001.00
##00000019.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF283
Deuteranopia (green-blind)
#FFF791
Tritanopia (blue-blind)
#FFECDF
Achromatopsia (no color)
#F4F4F4

Design tokens & code

CSS
--color: #fef98c;
/* rgb */ color: rgb(254, 249, 140);
/* oklch */ color: oklch(96.4% 0.131 106.3);
Tailwind
colors: {
  custom: {
    50: '#fffbaf',
    500: '#fef98c',
    950: '#000000',
  },
}
SCSS
$custom: #fef98c;
$custom-light: #fffbaf;
$custom-dark: #000000;
JSON
{
  "hex": "#fef98c",
  "rgb": {
    "r": 254,
    "g": 249,
    "b": 140
  },
  "hsl": {
    "h": 57.368,
    "s": 98.276,
    "l": 77.255
  },
  "oklch": {
    "l": 0.96354,
    "c": 0.13141,
    "h": 106.3
  },
  "luminance": 0.90716
}

Semantic roles & 50–950 ramp

primary
#FEF98C
secondary
#5056DF
accent
#0AE600
background
#FFFFFD
surface
#FFFFF7
border
#D7D7D0
text
#181711
muted
#868581

Preview Lab

Preview with #FEF98C

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

Preview Lab → · Contrast checker → · Palette generator →

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