#FEF56C#FEF56C

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

Color values

HEX#FEF56C
RGBrgb(254, 245, 108)
HSLhsl(56, 99%, 71%)
HSVhsv(56, 57%, 100%)
CMYKcmyk(0%, 3.5%, 57.5%, 0.4%)
CIE-LABlab(94.93, -13.60, 65.54)
CIE-LCHlch(94.93, 66.93, 101.73°)
OKLaboklab(95.16% -0.0419 0.1512)
OKLCHoklch(95.16% 0.157 105.5)
XYZxyz(76.2347, 87.4608, 27.0503)
Luminance0.8746 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF56C #6C75FE
analogous
#FEAC6C #FEF56C #BEFE6C
triadic
#FEF56C #6CFEF5 #F56CFE
tetradic
#FEF56C #6CFEAC #6C75FE #FE6CBE
square
#FEF56C #6CFEAC #6C75FE #FE6CBE
split-complementary
#FEF56C #6CBEFE #AC6CFE
monochromatic
#EEDF02 #FEF12F #FEF56C #FEF9A9 #FFFDE1

Accessibility & contrast

On white

1.14
#FEF56C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.49
#FEF56C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF56C
18.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF56C#FFFFFF#000000##000000
##FEF56C1.001.1418.4918.49
#FFFFFF1.141.0021.0021.00
#00000018.4921.001.001.00
##00000018.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED5D
Deuteranopia (green-blind)
#FFF373
Tritanopia (blue-blind)
#FFE6D7
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #fef56c;
/* rgb */ color: rgb(254, 245, 108);
/* oklch */ color: oklch(95.2% 0.157 105.5);
Tailwind
colors: {
  custom: {
    50: '#fff89b',
    500: '#fef56c',
    950: '#000000',
  },
}
SCSS
$custom: #fef56c;
$custom-light: #fff89b;
$custom-dark: #000000;
JSON
{
  "hex": "#fef56c",
  "rgb": {
    "r": 254,
    "g": 245,
    "b": 108
  },
  "hsl": {
    "h": 56.301,
    "s": 98.649,
    "l": 70.98
  },
  "oklch": {
    "l": 0.95163,
    "c": 0.15688,
    "h": 105.5
  },
  "luminance": 0.87458
}

Semantic roles & 50–950 ramp

primary
#FEF56C
secondary
#343FDA
accent
#0EE600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170E
muted
#86857F

Preview Lab

Preview with #FEF56C

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

Preview Lab → · Contrast checker → · Palette generator →

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