#FEFE8B#FEFE8B

#FEFE8B is a very light, vivid yellow. Relative luminance 0.938; OKLCH L 97.4% C 0.138 H 108.7°. Best body text is #000000 at 19.76:1 contrast (WCAG AA passes).

Color values

HEX#FEFE8B
RGBrgb(254, 254, 139)
HSLhsl(60, 98%, 77%)
HSVhsv(60, 45%, 100%)
CMYKcmyk(0%, 0%, 45.3%, 0.4%)
CIE-LABlab(97.56, -15.48, 54.65)
CIE-LCHlch(97.56, 56.81, 105.82°)
OKLaboklab(97.36% -0.0442 0.1305)
OKLCHoklch(97.36% 0.138 108.7)
XYZxyz(80.9767, 93.8204, 38.2646)
Luminance0.9382 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEFE8B #8B8BFE
analogous
#FEC58B #FEFE8B #C5FE8B
triadic
#FEFE8B #8BFEFE #FE8BFE
tetradic
#FEFE8B #8BFEC5 #8B8BFE #FE8BC5
square
#FEFE8B #8BFEC5 #8B8BFE #FE8BC5
split-complementary
#FEFE8B #8BC5FE #C58BFE
monochromatic
#FDFD12 #FDFD4E #FEFE8B #FFFFC8 #FFFFE1

Accessibility & contrast

On white

1.06
#FEFE8B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.76
#FEFE8B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEFE8B
19.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEFE8B#FFFFFF#000000##000000
##FEFE8B1.001.0619.7619.76
#FFFFFF1.061.0021.0021.00
#00000019.7621.001.001.00
##00000019.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF681
Deuteranopia (green-blind)
#FFFA90
Tritanopia (blue-blind)
#FFF1E3
Achromatopsia (no color)
#F8F8F8

Design tokens & code

CSS
--color: #fefe8b;
/* rgb */ color: rgb(254, 254, 139);
/* oklch */ color: oklch(97.4% 0.138 108.7);
Tailwind
colors: {
  custom: {
    50: '#fffeaf',
    500: '#fefe8b',
    950: '#000000',
  },
}
SCSS
$custom: #fefe8b;
$custom-light: #fffeaf;
$custom-dark: #000000;
JSON
{
  "hex": "#fefe8b",
  "rgb": {
    "r": 254,
    "g": 254,
    "b": 139
  },
  "hsl": {
    "h": 60,
    "s": 98.291,
    "l": 77.059
  },
  "oklch": {
    "l": 0.97357,
    "c": 0.13781,
    "h": 108.7
  },
  "luminance": 0.93819
}

Semantic roles & 50–950 ramp

primary
#FEFE8B
secondary
#4F4FDE
accent
#00E600
background
#FFFFFD
surface
#FFFFF7
border
#D7D7D0
text
#181711
muted
#868581

Preview Lab

Preview with #FEFE8B

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

Preview Lab → · Contrast checker → · Palette generator →

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