#FEF299#FEF299

#FEF299 is a very light, moderate yellow. Relative luminance 0.869; OKLCH L 95.1% C 0.111 H 101.6°. Best body text is #000000 at 18.38:1 contrast (WCAG AA passes).

Color values

HEX#FEF299
RGBrgb(254, 242, 153)
HSLhsl(53, 98%, 80%)
HSVhsv(53, 40%, 100%)
CMYKcmyk(0%, 4.7%, 39.8%, 0.4%)
CIE-LABlab(94.69, -8.23, 44.36)
CIE-LCHlch(94.69, 45.12, 100.50°)
OKLaboklab(95.13% -0.0222 0.1083)
OKLCHoklch(95.13% 0.111 101.6)
XYZxyz(78.3764, 86.8772, 42.7712)
Luminance0.8688 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF299 #99A5FE
analogous
#FEBF99 #FEF299 #D8FE99
triadic
#FEF299 #99FEF2 #F299FE
tetradic
#FEF299 #99FEBF #99A5FE #FE99D8
square
#FEF299 #99FEBF #99A5FE #FE99D8
split-complementary
#FEF299 #99D8FE #BF99FE
monochromatic
#FDE320 #FDEA5C #FEF299 #FFFAD6 #FFFBE1

Accessibility & contrast

On white

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

On black

18.38
#FEF299 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF299
18.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF299#FFFFFF#000000##000000
##FEF2991.001.1418.3818.38
#FFFFFF1.141.0021.0021.00
#00000018.3821.001.001.00
##00000018.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED92
Deuteranopia (green-blind)
#FFF29D
Tritanopia (blue-blind)
#FFE7DC
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #fef299;
/* rgb */ color: rgb(254, 242, 153);
/* oklch */ color: oklch(95.1% 0.111 101.6);
Tailwind
colors: {
  custom: {
    50: '#fff6b8',
    500: '#fef299',
    950: '#000000',
  },
}
SCSS
$custom: #fef299;
$custom-light: #fff6b8;
$custom-dark: #000000;
JSON
{
  "hex": "#fef299",
  "rgb": {
    "r": 254,
    "g": 242,
    "b": 153
  },
  "hsl": {
    "h": 52.871,
    "s": 98.058,
    "l": 79.804
  },
  "oklch": {
    "l": 0.95133,
    "c": 0.11052,
    "h": 101.6
  },
  "luminance": 0.86875
}

Semantic roles & 50–950 ramp

primary
#FEF299
secondary
#5B6BE0
accent
#1BE600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181711
muted
#868581

Preview Lab

Preview with #FEF299

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

Preview Lab → · Contrast checker → · Palette generator →

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