#FEF78A#FEF78A

#FEF78A is a very light, vivid yellow. Relative luminance 0.894; OKLCH L 95.9% C 0.131 H 105.4°. Best body text is #000000 at 18.89:1 contrast (WCAG AA passes).

Color values

HEX#FEF78A
RGBrgb(254, 247, 138)
HSLhsl(56, 98%, 77%)
HSVhsv(56, 46%, 100%)
CMYKcmyk(0%, 2.8%, 45.7%, 0.4%)
CIE-LABlab(95.76, -12.16, 52.93)
CIE-LCHlch(95.76, 54.31, 102.94°)
OKLaboklab(95.92% -0.0348 0.1266)
OKLCHoklch(95.92% 0.131 105.4)
XYZxyz(78.7230, 89.4295, 37.1545)
Luminance0.8943 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF78A #8A91FE
analogous
#FEBD8A #FEF78A #CBFE8A
triadic
#FEF78A #8AFEF7 #F78AFE
tetradic
#FEF78A #8AFEBD #8A91FE #FE8ACB
square
#FEF78A #8AFEBD #8A91FE #FE8ACB
split-complementary
#FEF78A #8ACBFE #BD8AFE
monochromatic
#FDEF11 #FDF34D #FEF78A #FFFBC7 #FFFDE1

Accessibility & contrast

On white

1.11
#FEF78A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.89
#FEF78A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF78A
18.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF78A#FFFFFF#000000##000000
##FEF78A1.001.1118.8918.89
#FFFFFF1.111.0021.0021.00
#00000018.8921.001.001.00
##00000018.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF081
Deuteranopia (green-blind)
#FFF58F
Tritanopia (blue-blind)
#FFEADD
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fef78a;
/* rgb */ color: rgb(254, 247, 138);
/* oklch */ color: oklch(95.9% 0.131 105.4);
Tailwind
colors: {
  custom: {
    50: '#fff9ae',
    500: '#fef78a',
    950: '#000000',
  },
}
SCSS
$custom: #fef78a;
$custom-light: #fff9ae;
$custom-dark: #000000;
JSON
{
  "hex": "#fef78a",
  "rgb": {
    "r": 254,
    "g": 247,
    "b": 138
  },
  "hsl": {
    "h": 56.379,
    "s": 98.305,
    "l": 76.863
  },
  "oklch": {
    "l": 0.95922,
    "c": 0.13133,
    "h": 105.4
  },
  "luminance": 0.89427
}

Semantic roles & 50–950 ramp

primary
#FEF78A
secondary
#4E57DE
accent
#0EE600
background
#FFFFFD
surface
#FFFFF7
border
#D7D7D0
text
#181710
muted
#868581

Preview Lab

Preview with #FEF78A

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

Preview Lab → · Contrast checker → · Palette generator →

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