#FEF56F#FEF56F

#FEF56F is a very light, vivid yellow. Relative luminance 0.875; OKLCH L 95.2% C 0.154 H 105.4°. Best body text is #000000 at 18.50:1 contrast (WCAG AA passes).

Color values

HEX#FEF56F
RGBrgb(254, 245, 111)
HSLhsl(56, 99%, 72%)
HSVhsv(56, 56%, 100%)
CMYKcmyk(0%, 3.5%, 56.3%, 0.4%)
CIE-LABlab(94.96, -13.39, 64.27)
CIE-LCHlch(94.96, 65.65, 101.77°)
OKLaboklab(95.19% -0.041 0.1488)
OKLCHoklch(95.19% 0.154 105.4)
XYZxyz(76.3971, 87.5258, 27.9057)
Luminance0.8752 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF56F #6F78FE
analogous
#FEAE6F #FEF56F #C0FE6F
triadic
#FEF56F #6FFEF5 #F56FFE
tetradic
#FEF56F #6FFEAE #6F78FE #FE6FC0
square
#FEF56F #6FFEAE #6F78FE #FE6FC0
split-complementary
#FEF56F #6FC0FE #AE6FFE
monochromatic
#F1E202 #FEF132 #FEF56F #FEF9AC #FFFDE1

Accessibility & contrast

On white

1.13
#FEF56F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.50
#FEF56F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF56F
18.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF56F#FFFFFF#000000##000000
##FEF56F1.001.1318.5018.50
#FFFFFF1.131.0021.0021.00
#00000018.5021.001.001.00
##00000018.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED61
Deuteranopia (green-blind)
#FFF376
Tritanopia (blue-blind)
#FFE7D8
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #fef56f;
/* rgb */ color: rgb(254, 245, 111);
/* oklch */ color: oklch(95.2% 0.154 105.4);
Tailwind
colors: {
  custom: {
    50: '#fff89c',
    500: '#fef56f',
    950: '#000000',
  },
}
SCSS
$custom: #fef56f;
$custom-light: #fff89c;
$custom-dark: #000000;
JSON
{
  "hex": "#fef56f",
  "rgb": {
    "r": 254,
    "g": 245,
    "b": 111
  },
  "hsl": {
    "h": 56.224,
    "s": 98.621,
    "l": 71.569
  },
  "oklch": {
    "l": 0.95193,
    "c": 0.15437,
    "h": 105.4
  },
  "luminance": 0.87523
}

Semantic roles & 50–950 ramp

primary
#FEF56F
secondary
#3741DA
accent
#0EE600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF56F

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

Preview Lab → · Contrast checker → · Palette generator →

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