#FEF98E#FEF98E

#FEF98E is a very light, vivid yellow. Relative luminance 0.908; OKLCH L 96.4% C 0.129 H 106.2°. Best body text is #000000 at 19.15:1 contrast (WCAG AA passes).

Color values

HEX#FEF98E
RGBrgb(254, 249, 142)
HSLhsl(57, 98%, 78%)
HSVhsv(57, 44%, 100%)
CMYKcmyk(0%, 2%, 44.1%, 0.4%)
CIE-LABlab(96.32, -12.77, 51.72)
CIE-LCHlch(96.32, 53.27, 103.87°)
OKLaboklab(96.38% -0.0362 0.1242)
OKLCHoklch(96.38% 0.129 106.2)
XYZxyz(79.6329, 90.7772, 38.9128)
Luminance0.9077 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF98E #8E93FE
analogous
#FEC18E #FEF98E #CBFE8E
triadic
#FEF98E #8EFEF9 #F98EFE
tetradic
#FEF98E #8EFEC1 #8E93FE #FE8ECB
square
#FEF98E #8EFEC1 #8E93FE #FE8ECB
split-complementary
#FEF98E #8ECBFE #C18EFE
monochromatic
#FDF315 #FDF651 #FEF98E #FFFCCB #FFFDE1

Accessibility & contrast

On white

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

On black

19.15
#FEF98E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF98E
19.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF98E#FFFFFF#000000##000000
##FEF98E1.001.1019.1519.15
#FFFFFF1.101.0021.0021.00
#00000019.1521.001.001.00
##00000019.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF285
Deuteranopia (green-blind)
#FFF793
Tritanopia (blue-blind)
#FFEDE0
Achromatopsia (no color)
#F4F4F4

Design tokens & code

CSS
--color: #fef98e;
/* rgb */ color: rgb(254, 249, 142);
/* oklch */ color: oklch(96.4% 0.129 106.2);
Tailwind
colors: {
  custom: {
    50: '#fffbb1',
    500: '#fef98e',
    950: '#000000',
  },
}
SCSS
$custom: #fef98e;
$custom-light: #fffbb1;
$custom-dark: #000000;
JSON
{
  "hex": "#fef98e",
  "rgb": {
    "r": 254,
    "g": 249,
    "b": 142
  },
  "hsl": {
    "h": 57.321,
    "s": 98.246,
    "l": 77.647
  },
  "oklch": {
    "l": 0.96381,
    "c": 0.12939,
    "h": 106.2
  },
  "luminance": 0.90775
}

Semantic roles & 50–950 ramp

primary
#FEF98E
secondary
#5158DF
accent
#0AE600
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181711
muted
#868581

Preview Lab

Preview with #FEF98E

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

Preview Lab → · Contrast checker → · Palette generator →

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