#FEF78F#FEF78F

#FEF78F is a very light, vivid yellow. Relative luminance 0.896; OKLCH L 96.0% C 0.126 H 105.1°. Best body text is #000000 at 18.92:1 contrast (WCAG AA passes).

Color values

HEX#FEF78F
RGBrgb(254, 247, 143)
HSLhsl(56, 98%, 78%)
HSVhsv(56, 44%, 100%)
CMYKcmyk(0%, 2.8%, 43.7%, 0.4%)
CIE-LABlab(95.82, -11.69, 50.63)
CIE-LCHlch(95.82, 51.96, 103.00°)
OKLaboklab(95.99% -0.033 0.1219)
OKLCHoklch(95.99% 0.126 105.1)
XYZxyz(79.0934, 89.5776, 39.1051)
Luminance0.8958 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF78F #8F96FE
analogous
#FEBF8F #FEF78F #CEFE8F
triadic
#FEF78F #8FFEF7 #F78FFE
tetradic
#FEF78F #8FFEBF #8F96FE #FE8FCE
square
#FEF78F #8FFEBF #8F96FE #FE8FCE
split-complementary
#FEF78F #8FCEFE #BF8FFE
monochromatic
#FDEE16 #FDF352 #FEF78F #FFFBCC #FFFDE1

Accessibility & contrast

On white

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

On black

18.92
#FEF78F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF78F
18.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF78F#FFFFFF#000000##000000
##FEF78F1.001.1118.9218.92
#FFFFFF1.111.0021.0021.00
#00000018.9221.001.001.00
##00000018.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF087
Deuteranopia (green-blind)
#FFF594
Tritanopia (blue-blind)
#FFEBDE
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fef78f;
/* rgb */ color: rgb(254, 247, 143);
/* oklch */ color: oklch(96.0% 0.126 105.1);
Tailwind
colors: {
  custom: {
    50: '#fff9b1',
    500: '#fef78f',
    950: '#000000',
  },
}
SCSS
$custom: #fef78f;
$custom-light: #fff9b1;
$custom-dark: #000000;
JSON
{
  "hex": "#fef78f",
  "rgb": {
    "r": 254,
    "g": 247,
    "b": 143
  },
  "hsl": {
    "h": 56.216,
    "s": 98.23,
    "l": 77.843
  },
  "oklch": {
    "l": 0.95991,
    "c": 0.12625,
    "h": 105.1
  },
  "luminance": 0.89576
}

Semantic roles & 50–950 ramp

primary
#FEF78F
secondary
#525BDF
accent
#0EE600
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181711
muted
#868581

Preview Lab

Preview with #FEF78F

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

Preview Lab → · Contrast checker → · Palette generator →

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