#FEF978#FEF978

#FEF978 is a very light, vivid yellow. Relative luminance 0.902; OKLCH L 96.1% C 0.150 H 106.9°. Best body text is #000000 at 19.04:1 contrast (WCAG AA passes).

Color values

HEX#FEF978
RGBrgb(254, 249, 120)
HSLhsl(58, 99%, 73%)
HSVhsv(58, 53%, 100%)
CMYKcmyk(0%, 2%, 52.8%, 0.4%)
CIE-LABlab(96.07, -14.67, 61.58)
CIE-LCHlch(96.07, 63.30, 103.40°)
OKLaboklab(96.1% -0.0437 0.144)
OKLCHoklch(96.1% 0.15 106.9)
XYZxyz(78.1410, 90.1805, 31.0560)
Luminance0.9018 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF978 #787DFE
analogous
#FEB678 #FEF978 #C0FE78
triadic
#FEF978 #78FEF9 #F978FE
tetradic
#FEF978 #78FEB6 #787DFE #FE78C0
square
#FEF978 #78FEB6 #787DFE #FE78C0
split-complementary
#FEF978 #78C0FE #B678FE
monochromatic
#FAF002 #FEF63B #FEF978 #FEFCB5 #FFFEE1

Accessibility & contrast

On white

1.10
#FEF978 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.04
#FEF978 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF978
19.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF978#FFFFFF#000000##000000
##FEF9781.001.1019.0419.04
#FFFFFF1.101.0021.0021.00
#00000019.0421.001.001.00
##00000019.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF16B
Deuteranopia (green-blind)
#FFF67F
Tritanopia (blue-blind)
#FFEBDC
Achromatopsia (no color)
#F4F4F4

Design tokens & code

CSS
--color: #fef978;
/* rgb */ color: rgb(254, 249, 120);
/* oklch */ color: oklch(96.1% 0.150 106.9);
Tailwind
colors: {
  custom: {
    50: '#fffba2',
    500: '#fef978',
    950: '#000000',
  },
}
SCSS
$custom: #fef978;
$custom-light: #fffba2;
$custom-dark: #000000;
JSON
{
  "hex": "#fef978",
  "rgb": {
    "r": 254,
    "g": 249,
    "b": 120
  },
  "hsl": {
    "h": 57.761,
    "s": 98.529,
    "l": 73.333
  },
  "oklch": {
    "l": 0.96105,
    "c": 0.15049,
    "h": 106.9
  },
  "luminance": 0.90178
}

Semantic roles & 50–950 ramp

primary
#FEF978
secondary
#3F44DC
accent
#09E600
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF978

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

Preview Lab → · Contrast checker → · Palette generator →

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