#FEFC8B#FEFC8B

#FEFC8B is a very light, vivid yellow. Relative luminance 0.926; OKLCH L 97.0% C 0.136 H 107.8°. Best body text is #000000 at 19.51:1 contrast (WCAG AA passes).

Color values

HEX#FEFC8B
RGBrgb(254, 252, 139)
HSLhsl(59, 98%, 77%)
HSVhsv(59, 45%, 100%)
CMYKcmyk(0%, 0.8%, 45.3%, 0.4%)
CIE-LABlab(97.05, -14.51, 54.03)
CIE-LCHlch(97.05, 55.95, 105.03°)
OKLaboklab(96.95% -0.0414 0.1291)
OKLCHoklch(96.95% 0.136 107.8)
XYZxyz(80.3453, 92.5576, 38.0541)
Luminance0.9256 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEFC8B #8B8DFE
analogous
#FEC38B #FEFC8B #C6FE8B
triadic
#FEFC8B #8BFEFC #FC8BFE
tetradic
#FEFC8B #8BFEC3 #8B8DFE #FE8BC6
square
#FEFC8B #8BFEC3 #8B8DFE #FE8BC6
split-complementary
#FEFC8B #8BC6FE #C38BFE
monochromatic
#FDF912 #FDFA4E #FEFC8B #FFFEC8 #FFFEE1

Accessibility & contrast

On white

1.08
#FEFC8B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.51
#FEFC8B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEFC8B
19.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEFC8B#FFFFFF#000000##000000
##FEFC8B1.001.0819.5119.51
#FFFFFF1.081.0021.0021.00
#00000019.5121.001.001.00
##00000019.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF481
Deuteranopia (green-blind)
#FFF990
Tritanopia (blue-blind)
#FFEFE1
Achromatopsia (no color)
#F6F6F6

Design tokens & code

CSS
--color: #fefc8b;
/* rgb */ color: rgb(254, 252, 139);
/* oklch */ color: oklch(97.0% 0.136 107.8);
Tailwind
colors: {
  custom: {
    50: '#fffdaf',
    500: '#fefc8b',
    950: '#000000',
  },
}
SCSS
$custom: #fefc8b;
$custom-light: #fffdaf;
$custom-dark: #000000;
JSON
{
  "hex": "#fefc8b",
  "rgb": {
    "r": 254,
    "g": 252,
    "b": 139
  },
  "hsl": {
    "h": 58.957,
    "s": 98.291,
    "l": 77.059
  },
  "oklch": {
    "l": 0.9695,
    "c": 0.13563,
    "h": 107.8
  },
  "luminance": 0.92556
}

Semantic roles & 50–950 ramp

primary
#FEFC8B
secondary
#4F51DE
accent
#04E600
background
#FFFFFD
surface
#FFFFF7
border
#D7D7D0
text
#181710
muted
#868581

Preview Lab

Preview with #FEFC8B

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

Preview Lab → · Contrast checker → · Palette generator →

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