#FEF474#FEF474

#FEF474 is a very light, vivid yellow. Relative luminance 0.870; OKLCH L 95.0% C 0.149 H 104.8°. Best body text is #000000 at 18.41:1 contrast (WCAG AA passes).

Color values

HEX#FEF474
RGBrgb(254, 244, 116)
HSLhsl(56, 99%, 73%)
HSVhsv(56, 54%, 100%)
CMYKcmyk(0%, 3.9%, 54.3%, 0.4%)
CIE-LABlab(94.75, -12.53, 61.84)
CIE-LCHlch(94.75, 63.10, 101.46°)
OKLaboklab(95.04% -0.038 0.1442)
OKLCHoklch(95.04% 0.149 104.8)
XYZxyz(76.3785, 87.0356, 29.2958)
Luminance0.8703 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF474 #747EFE
analogous
#FEAF74 #FEF474 #C3FE74
triadic
#FEF474 #74FEF4 #F474FE
tetradic
#FEF474 #74FEAF #747EFE #FE74C3
square
#FEF474 #74FEAF #747EFE #FE74C3
split-complementary
#FEF474 #74C3FE #AF74FE
monochromatic
#F6E402 #FEEF37 #FEF474 #FEF9B1 #FFFDE1

Accessibility & contrast

On white

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

On black

18.41
#FEF474 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF474
18.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF474#FFFFFF#000000##000000
##FEF4741.001.1418.4118.41
#FFFFFF1.141.0021.0021.00
#00000018.4121.001.001.00
##00000018.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC67
Deuteranopia (green-blind)
#FFF37B
Tritanopia (blue-blind)
#FFE6D8
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #fef474;
/* rgb */ color: rgb(254, 244, 116);
/* oklch */ color: oklch(95.0% 0.149 104.8);
Tailwind
colors: {
  custom: {
    50: '#fff7a0',
    500: '#fef474',
    950: '#000000',
  },
}
SCSS
$custom: #fef474;
$custom-light: #fff7a0;
$custom-dark: #000000;
JSON
{
  "hex": "#fef474",
  "rgb": {
    "r": 254,
    "g": 244,
    "b": 116
  },
  "hsl": {
    "h": 55.652,
    "s": 98.571,
    "l": 72.549
  },
  "oklch": {
    "l": 0.95044,
    "c": 0.14909,
    "h": 104.8
  },
  "luminance": 0.87033
}

Semantic roles & 50–950 ramp

primary
#FEF474
secondary
#3B47DB
accent
#11E600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF474

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

Preview Lab → · Contrast checker → · Palette generator →

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