#FEF47C#FEF47C

#FEF47C is a very light, vivid yellow. Relative luminance 0.872; OKLCH L 95.1% C 0.142 H 104.5°. Best body text is #000000 at 18.45:1 contrast (WCAG AA passes).

Color values

HEX#FEF47C
RGBrgb(254, 244, 124)
HSLhsl(55, 98%, 74%)
HSVhsv(55, 51%, 100%)
CMYKcmyk(0%, 3.9%, 51.2%, 0.4%)
CIE-LABlab(94.84, -11.91, 58.33)
CIE-LCHlch(94.84, 59.53, 101.54°)
OKLaboklab(95.14% -0.0354 0.1374)
OKLCHoklch(95.14% 0.142 104.5)
XYZxyz(76.8640, 87.2298, 31.8530)
Luminance0.8723 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF47C #7C86FE
analogous
#FEB37C #FEF47C #C7FE7C
triadic
#FEF47C #7CFEF4 #F47CFE
tetradic
#FEF47C #7CFEB3 #7C86FE #FE7CC7
square
#FEF47C #7CFEB3 #7C86FE #FE7CC7
split-complementary
#FEF47C #7CC7FE #B37CFE
monochromatic
#FDEA03 #FEEF3F #FEF47C #FEF9B9 #FFFCE1

Accessibility & contrast

On white

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

On black

18.45
#FEF47C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF47C
18.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF47C#FFFFFF#000000##000000
##FEF47C1.001.1418.4518.45
#FFFFFF1.141.0021.0021.00
#00000018.4521.001.001.00
##00000018.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED71
Deuteranopia (green-blind)
#FFF382
Tritanopia (blue-blind)
#FFE6D9
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #fef47c;
/* rgb */ color: rgb(254, 244, 124);
/* oklch */ color: oklch(95.1% 0.142 104.5);
Tailwind
colors: {
  custom: {
    50: '#fff7a5',
    500: '#fef47c',
    950: '#000000',
  },
}
SCSS
$custom: #fef47c;
$custom-light: #fff7a5;
$custom-dark: #000000;
JSON
{
  "hex": "#fef47c",
  "rgb": {
    "r": 254,
    "g": 244,
    "b": 124
  },
  "hsl": {
    "h": 55.385,
    "s": 98.485,
    "l": 74.118
  },
  "oklch": {
    "l": 0.95136,
    "c": 0.14184,
    "h": 104.5
  },
  "luminance": 0.87227
}

Semantic roles & 50–950 ramp

primary
#FEF47C
secondary
#424EDC
accent
#12E600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF47C

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

Preview Lab → · Contrast checker → · Palette generator →

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