#FEF98B#FEF98B

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

Color values

HEX#FEF98B
RGBrgb(254, 249, 139)
HSLhsl(57, 98%, 77%)
HSVhsv(57, 45%, 100%)
CMYKcmyk(0%, 2%, 45.3%, 0.4%)
CIE-LABlab(96.28, -13.05, 53.10)
CIE-LCHlch(96.28, 54.68, 103.81°)
OKLaboklab(96.34% -0.0372 0.1271)
OKLCHoklch(96.34% 0.132 106.3)
XYZxyz(79.4106, 90.6883, 37.7425)
Luminance0.9069 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF98B #8B90FE
analogous
#FEBF8B #FEF98B #CAFE8B
triadic
#FEF98B #8BFEF9 #F98BFE
tetradic
#FEF98B #8BFEBF #8B90FE #FE8BCA
square
#FEF98B #8BFEBF #8B90FE #FE8BCA
split-complementary
#FEF98B #8BCAFE #BF8BFE
monochromatic
#FDF312 #FDF64E #FEF98B #FFFCC8 #FFFDE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##FEF98B#FFFFFF#000000##000000
##FEF98B1.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)
#FFF282
Deuteranopia (green-blind)
#FFF790
Tritanopia (blue-blind)
#FFECDF
Achromatopsia (no color)
#F4F4F4

Design tokens & code

CSS
--color: #fef98b;
/* rgb */ color: rgb(254, 249, 139);
/* oklch */ color: oklch(96.3% 0.132 106.3);
Tailwind
colors: {
  custom: {
    50: '#fffbaf',
    500: '#fef98b',
    950: '#000000',
  },
}
SCSS
$custom: #fef98b;
$custom-light: #fffbaf;
$custom-dark: #000000;
JSON
{
  "hex": "#fef98b",
  "rgb": {
    "r": 254,
    "g": 249,
    "b": 139
  },
  "hsl": {
    "h": 57.391,
    "s": 98.291,
    "l": 77.059
  },
  "oklch": {
    "l": 0.9634,
    "c": 0.13242,
    "h": 106.3
  },
  "luminance": 0.90686
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #FEF98B

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

Preview Lab → · Contrast checker → · Palette generator →

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