#FEF76D#FEF76D

#FEF76D is a very light, vivid yellow. Relative luminance 0.887; OKLCH L 95.6% C 0.158 H 106.3°. Best body text is #000000 at 18.74:1 contrast (WCAG AA passes).

Color values

HEX#FEF76D
RGBrgb(254, 247, 109)
HSLhsl(57, 99%, 71%)
HSVhsv(57, 57%, 100%)
CMYKcmyk(0%, 2.8%, 57.1%, 0.4%)
CIE-LABlab(95.45, -14.51, 65.69)
CIE-LCHlch(95.45, 67.27, 102.45°)
OKLaboklab(95.58% -0.0444 0.1516)
OKLCHoklch(95.58% 0.158 106.3)
XYZxyz(76.8965, 88.6989, 27.5350)
Luminance0.8870 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF76D #6D74FE
analogous
#FEAE6D #FEF76D #BCFE6D
triadic
#FEF76D #6DFEF7 #F76DFE
tetradic
#FEF76D #6DFEAE #6D74FE #FE6DBC
square
#FEF76D #6DFEAE #6D74FE #FE6DBC
split-complementary
#FEF76D #6DBCFE #AE6DFE
monochromatic
#EFE402 #FEF430 #FEF76D #FEFAAA #FFFDE1

Accessibility & contrast

On white

1.12
#FEF76D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.74
#FEF76D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF76D
18.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF76D#FFFFFF#000000##000000
##FEF76D1.001.1218.7418.74
#FFFFFF1.121.0021.0021.00
#00000018.7421.001.001.00
##00000018.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF5E
Deuteranopia (green-blind)
#FFF575
Tritanopia (blue-blind)
#FFE8D9
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #fef76d;
/* rgb */ color: rgb(254, 247, 109);
/* oklch */ color: oklch(95.6% 0.158 106.3);
Tailwind
colors: {
  custom: {
    50: '#fff99b',
    500: '#fef76d',
    950: '#000000',
  },
}
SCSS
$custom: #fef76d;
$custom-light: #fff99b;
$custom-dark: #000000;
JSON
{
  "hex": "#fef76d",
  "rgb": {
    "r": 254,
    "g": 247,
    "b": 109
  },
  "hsl": {
    "h": 57.103,
    "s": 98.639,
    "l": 71.176
  },
  "oklch": {
    "l": 0.9558,
    "c": 0.15799,
    "h": 106.3
  },
  "luminance": 0.88696
}

Semantic roles & 50–950 ramp

primary
#FEF76D
secondary
#353DDA
accent
#0BE600
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170E
muted
#86857F

Preview Lab

Preview with #FEF76D

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

Preview Lab → · Contrast checker → · Palette generator →

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