#FEF98A#FEF98A

#FEF98A is a very light, vivid yellow. Relative luminance 0.907; OKLCH L 96.3% C 0.133 H 106.4°. Best body text is #000000 at 19.13:1 contrast (WCAG AA passes).

Color values

HEX#FEF98A
RGBrgb(254, 249, 138)
HSLhsl(57, 98%, 77%)
HSVhsv(57, 46%, 100%)
CMYKcmyk(0%, 2%, 45.7%, 0.4%)
CIE-LABlab(96.27, -13.14, 53.55)
CIE-LCHlch(96.27, 55.14, 103.79°)
OKLaboklab(96.33% -0.0376 0.128)
OKLCHoklch(96.33% 0.133 106.4)
XYZxyz(79.3379, 90.6592, 37.3595)
Luminance0.9066 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF98A #8A8FFE
analogous
#FEBF8A #FEF98A #C9FE8A
triadic
#FEF98A #8AFEF9 #F98AFE
tetradic
#FEF98A #8AFEBF #8A8FFE #FE8AC9
square
#FEF98A #8AFEBF #8A8FFE #FE8AC9
split-complementary
#FEF98A #8AC9FE #BF8AFE
monochromatic
#FDF311 #FDF64D #FEF98A #FFFCC7 #FFFDE1

Accessibility & contrast

On white

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

On black

19.13
#FEF98A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF98A
19.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF98A#FFFFFF#000000##000000
##FEF98A1.001.1019.1319.13
#FFFFFF1.101.0021.0021.00
#00000019.1321.001.001.00
##00000019.1321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #fef98a;
/* rgb */ color: rgb(254, 249, 138);
/* oklch */ color: oklch(96.3% 0.133 106.4);
Tailwind
colors: {
  custom: {
    50: '#fffbae',
    500: '#fef98a',
    950: '#000000',
  },
}
SCSS
$custom: #fef98a;
$custom-light: #fffbae;
$custom-dark: #000000;
JSON
{
  "hex": "#fef98a",
  "rgb": {
    "r": 254,
    "g": 249,
    "b": 138
  },
  "hsl": {
    "h": 57.414,
    "s": 98.305,
    "l": 76.863
  },
  "oklch": {
    "l": 0.96327,
    "c": 0.13342,
    "h": 106.4
  },
  "luminance": 0.90657
}

Semantic roles & 50–950 ramp

primary
#FEF98A
secondary
#4E54DE
accent
#0AE600
background
#FFFFFD
surface
#FFFFF7
border
#D7D7D0
text
#181710
muted
#868581

Preview Lab

Preview with #FEF98A

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

Preview Lab → · Contrast checker → · Palette generator →

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