#FEF07F#FEF07F

#FEF07F is a very light, vivid yellow. Relative luminance 0.849; OKLCH L 94.4% C 0.135 H 102.3°. Best body text is #000000 at 17.98:1 contrast (WCAG AA passes).

Color values

HEX#FEF07F
RGBrgb(254, 240, 127)
HSLhsl(53, 98%, 75%)
HSVhsv(53, 50%, 100%)
CMYKcmyk(0%, 5.5%, 50%, 0.4%)
CIE-LABlab(93.85, -9.69, 55.78)
CIE-LCHlch(93.85, 56.61, 99.85°)
OKLaboklab(94.37% -0.0287 0.1321)
OKLCHoklch(94.37% 0.135 102.3)
XYZxyz(75.8661, 84.9258, 32.4706)
Luminance0.8492 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF07F #7F8DFE
analogous
#FEB17F #FEF07F #CCFE7F
triadic
#FEF07F #7FFEF0 #F07FFE
tetradic
#FEF07F #7FFEB1 #7F8DFE #FE7FCC
square
#FEF07F #7FFEB1 #7F8DFE #FE7FCC
split-complementary
#FEF07F #7FCCFE #B17FFE
monochromatic
#FDE206 #FEE942 #FEF07F #FEF7BC #FFFBE1

Accessibility & contrast

On white

1.17
#FEF07F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.98
#FEF07F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF07F
17.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF07F#FFFFFF#000000##000000
##FEF07F1.001.1717.9817.98
#FFFFFF1.171.0021.0021.00
#00000017.9821.001.001.00
##00000017.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEA75
Deuteranopia (green-blind)
#FFF084
Tritanopia (blue-blind)
#FFE3D6
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #fef07f;
/* rgb */ color: rgb(254, 240, 127);
/* oklch */ color: oklch(94.4% 0.135 102.3);
Tailwind
colors: {
  custom: {
    50: '#fff4a7',
    500: '#fef07f',
    950: '#000000',
  },
}
SCSS
$custom: #fef07f;
$custom-light: #fff4a7;
$custom-dark: #000000;
JSON
{
  "hex": "#fef07f",
  "rgb": {
    "r": 254,
    "g": 240,
    "b": 127
  },
  "hsl": {
    "h": 53.386,
    "s": 98.45,
    "l": 74.706
  },
  "oklch": {
    "l": 0.94365,
    "c": 0.13514,
    "h": 102.3
  },
  "luminance": 0.84923
}

Semantic roles & 50–950 ramp

primary
#FEF07F
secondary
#4555DD
accent
#19E600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#181710
muted
#868580

Preview Lab

Preview with #FEF07F

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

Preview Lab → · Contrast checker → · Palette generator →

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