#FEF78C#FEF78C

#FEF78C is a very light, vivid yellow. Relative luminance 0.895; OKLCH L 95.9% C 0.129 H 105.3°. Best body text is #000000 at 18.90:1 contrast (WCAG AA passes).

Color values

HEX#FEF78C
RGBrgb(254, 247, 140)
HSLhsl(56, 98%, 77%)
HSVhsv(56, 45%, 100%)
CMYKcmyk(0%, 2.8%, 44.9%, 0.4%)
CIE-LABlab(95.78, -11.98, 52.01)
CIE-LCHlch(95.78, 53.37, 102.97°)
OKLaboklab(95.95% -0.0341 0.1247)
OKLCHoklch(95.95% 0.129 105.3)
XYZxyz(78.8692, 89.4879, 37.9242)
Luminance0.8949 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF78C #8C93FE
analogous
#FEBE8C #FEF78C #CCFE8C
triadic
#FEF78C #8CFEF7 #F78CFE
tetradic
#FEF78C #8CFEBE #8C93FE #FE8CCC
square
#FEF78C #8CFEBE #8C93FE #FE8CCC
split-complementary
#FEF78C #8CCCFE #BE8CFE
monochromatic
#FDEF13 #FDF34F #FEF78C #FFFBC9 #FFFDE1

Accessibility & contrast

On white

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

On black

18.90
#FEF78C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF78C
18.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF78C#FFFFFF#000000##000000
##FEF78C1.001.1118.9018.90
#FFFFFF1.111.0021.0021.00
#00000018.9021.001.001.00
##00000018.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF083
Deuteranopia (green-blind)
#FFF591
Tritanopia (blue-blind)
#FFEADE
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fef78c;
/* rgb */ color: rgb(254, 247, 140);
/* oklch */ color: oklch(95.9% 0.129 105.3);
Tailwind
colors: {
  custom: {
    50: '#fff9af',
    500: '#fef78c',
    950: '#000000',
  },
}
SCSS
$custom: #fef78c;
$custom-light: #fff9af;
$custom-dark: #000000;
JSON
{
  "hex": "#fef78c",
  "rgb": {
    "r": 254,
    "g": 247,
    "b": 140
  },
  "hsl": {
    "h": 56.316,
    "s": 98.276,
    "l": 77.255
  },
  "oklch": {
    "l": 0.95949,
    "c": 0.12931,
    "h": 105.3
  },
  "luminance": 0.89486
}

Semantic roles & 50–950 ramp

primary
#FEF78C
secondary
#5058DF
accent
#0EE600
background
#FFFFFD
surface
#FFFFF7
border
#D7D7D0
text
#181711
muted
#868581

Preview Lab

Preview with #FEF78C

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

Preview Lab → · Contrast checker → · Palette generator →

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