#FEF08F#FEF08F

#FEF08F is a very light, moderate yellow. Relative luminance 0.854; OKLCH L 94.6% C 0.119 H 101.2°. Best body text is #000000 at 18.07:1 contrast (WCAG AA passes).

Color values

HEX#FEF08F
RGBrgb(254, 240, 143)
HSLhsl(52, 98%, 78%)
HSVhsv(52, 44%, 100%)
CMYKcmyk(0%, 5.5%, 43.7%, 0.4%)
CIE-LABlab(94.05, -8.24, 48.42)
CIE-LCHlch(94.05, 49.12, 99.66°)
OKLaboklab(94.58% -0.023 0.1169)
OKLCHoklch(94.58% 0.119 101.2)
XYZxyz(76.9929, 85.3766, 38.4049)
Luminance0.8537 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF08F #8F9DFE
analogous
#FEB88F #FEF08F #D5FE8F
triadic
#FEF08F #8FFEF0 #F08FFE
tetradic
#FEF08F #8FFEB8 #8F9DFE #FE8FD5
square
#FEF08F #8FFEB8 #8F9DFE #FE8FD5
split-complementary
#FEF08F #8FD5FE #B88FFE
monochromatic
#FDE016 #FDE852 #FEF08F #FFF8CC #FFFBE1

Accessibility & contrast

On white

1.16
#FEF08F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.07
#FEF08F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF08F
18.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF08F#FFFFFF#000000##000000
##FEF08F1.001.1618.0718.07
#FFFFFF1.161.0021.0021.00
#00000018.0721.001.001.00
##00000018.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEA87
Deuteranopia (green-blind)
#FFF193
Tritanopia (blue-blind)
#FFE4D9
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #fef08f;
/* rgb */ color: rgb(254, 240, 143);
/* oklch */ color: oklch(94.6% 0.119 101.2);
Tailwind
colors: {
  custom: {
    50: '#fff4b1',
    500: '#fef08f',
    950: '#000000',
  },
}
SCSS
$custom: #fef08f;
$custom-light: #fff4b1;
$custom-dark: #000000;
JSON
{
  "hex": "#fef08f",
  "rgb": {
    "r": 254,
    "g": 240,
    "b": 143
  },
  "hsl": {
    "h": 52.432,
    "s": 98.23,
    "l": 77.843
  },
  "oklch": {
    "l": 0.94581,
    "c": 0.11916,
    "h": 101.2
  },
  "luminance": 0.85374
}

Semantic roles & 50–950 ramp

primary
#FEF08F
secondary
#5264DF
accent
#1DE600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181711
muted
#868581

Preview Lab

Preview with #FEF08F

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

Preview Lab → · Contrast checker → · Palette generator →

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