#FEF478#FEF478

#FEF478 is a very light, vivid yellow. Relative luminance 0.871; OKLCH L 95.1% C 0.146 H 104.6°. Best body text is #000000 at 18.43:1 contrast (WCAG AA passes).

Color values

HEX#FEF478
RGBrgb(254, 244, 120)
HSLhsl(56, 99%, 73%)
HSVhsv(56, 53%, 100%)
CMYKcmyk(0%, 3.9%, 52.8%, 0.4%)
CIE-LABlab(94.79, -12.23, 60.09)
CIE-LCHlch(94.79, 61.33, 101.50°)
OKLaboklab(95.09% -0.0367 0.1408)
OKLCHoklch(95.09% 0.146 104.6)
XYZxyz(76.6162, 87.1307, 30.5477)
Luminance0.8713 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF478 #7882FE
analogous
#FEB178 #FEF478 #C5FE78
triadic
#FEF478 #78FEF4 #F478FE
tetradic
#FEF478 #78FEB1 #7882FE #FE78C5
square
#FEF478 #78FEB1 #7882FE #FE78C5
split-complementary
#FEF478 #78C5FE #B178FE
monochromatic
#FAE702 #FEEF3B #FEF478 #FEF9B5 #FFFDE1

Accessibility & contrast

On white

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

On black

18.43
#FEF478 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF478
18.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF478#FFFFFF#000000##000000
##FEF4781.001.1418.4318.43
#FFFFFF1.141.0021.0021.00
#00000018.4321.001.001.00
##00000018.4321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #fef478;
/* rgb */ color: rgb(254, 244, 120);
/* oklch */ color: oklch(95.1% 0.146 104.6);
Tailwind
colors: {
  custom: {
    50: '#fff7a2',
    500: '#fef478',
    950: '#000000',
  },
}
SCSS
$custom: #fef478;
$custom-light: #fff7a2;
$custom-dark: #000000;
JSON
{
  "hex": "#fef478",
  "rgb": {
    "r": 254,
    "g": 244,
    "b": 120
  },
  "hsl": {
    "h": 55.522,
    "s": 98.529,
    "l": 73.333
  },
  "oklch": {
    "l": 0.95089,
    "c": 0.14552,
    "h": 104.6
  },
  "luminance": 0.87128
}

Semantic roles & 50–950 ramp

primary
#FEF478
secondary
#3F4ADC
accent
#11E600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF478

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

Preview Lab → · Contrast checker → · Palette generator →

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