#FEF29D#FEF29D

#FEF29D is a very light, moderate yellow. Relative luminance 0.870; OKLCH L 95.2% C 0.106 H 101.2°. Best body text is #000000 at 18.40:1 contrast (WCAG AA passes).

Color values

HEX#FEF29D
RGBrgb(254, 242, 157)
HSLhsl(53, 98%, 81%)
HSVhsv(53, 38%, 100%)
CMYKcmyk(0%, 4.7%, 38.2%, 0.4%)
CIE-LABlab(94.74, -7.80, 42.47)
CIE-LCHlch(94.74, 43.18, 100.41°)
OKLaboklab(95.2% -0.0207 0.1041)
OKLCHoklch(95.2% 0.106 101.2)
XYZxyz(78.7123, 87.0116, 44.5403)
Luminance0.8701 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF29D #9DA9FE
analogous
#FEC19D #FEF29D #DAFE9D
triadic
#FEF29D #9DFEF2 #F29DFE
tetradic
#FEF29D #9DFEC1 #9DA9FE #FE9DDA
square
#FEF29D #9DFEC1 #9DA9FE #FE9DDA
split-complementary
#FEF29D #9DDAFE #C19DFE
monochromatic
#FDE224 #FDEA60 #FEF29D #FFFADA #FFFBE1

Accessibility & contrast

On white

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

On black

18.40
#FEF29D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF29D
18.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF29D#FFFFFF#000000##000000
##FEF29D1.001.1418.4018.40
#FFFFFF1.141.0021.0021.00
#00000018.4021.001.001.00
##00000018.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED97
Deuteranopia (green-blind)
#FFF2A0
Tritanopia (blue-blind)
#FFE7DD
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #fef29d;
/* rgb */ color: rgb(254, 242, 157);
/* oklch */ color: oklch(95.2% 0.106 101.2);
Tailwind
colors: {
  custom: {
    50: '#fff6bb',
    500: '#fef29d',
    950: '#000000',
  },
}
SCSS
$custom: #fef29d;
$custom-light: #fff6bb;
$custom-dark: #000000;
JSON
{
  "hex": "#fef29d",
  "rgb": {
    "r": 254,
    "g": 242,
    "b": 157
  },
  "hsl": {
    "h": 52.577,
    "s": 97.98,
    "l": 80.588
  },
  "oklch": {
    "l": 0.95197,
    "c": 0.10615,
    "h": 101.2
  },
  "luminance": 0.87009
}

Semantic roles & 50–950 ramp

primary
#FEF29D
secondary
#5E6EE1
accent
#1CE600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181712
muted
#868582

Preview Lab

Preview with #FEF29D

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

Preview Lab → · Contrast checker → · Palette generator →

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