#FEF07D#FEF07D

#FEF07D is a very light, vivid yellow. Relative luminance 0.849; OKLCH L 94.3% C 0.137 H 102.4°. Best body text is #000000 at 17.97:1 contrast (WCAG AA passes).

Color values

HEX#FEF07D
RGBrgb(254, 240, 125)
HSLhsl(53, 98%, 74%)
HSVhsv(53, 51%, 100%)
CMYKcmyk(0%, 5.5%, 50.8%, 0.4%)
CIE-LABlab(93.83, -9.85, 56.68)
CIE-LCHlch(93.83, 57.53, 99.86°)
OKLaboklab(94.34% -0.0294 0.1339)
OKLCHoklch(94.34% 0.137 102.4)
XYZxyz(75.7370, 84.8742, 31.7909)
Luminance0.8487 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF07D #7D8BFE
analogous
#FEB07D #FEF07D #CCFE7D
triadic
#FEF07D #7DFEF0 #F07DFE
tetradic
#FEF07D #7DFEB0 #7D8BFE #FE7DCC
square
#FEF07D #7DFEB0 #7D8BFE #FE7DCC
split-complementary
#FEF07D #7DCCFE #B07DFE
monochromatic
#FDE204 #FEE940 #FEF07D #FEF7BA #FFFBE1

Accessibility & contrast

On white

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

On black

17.97
#FEF07D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF07D
17.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF07D#FFFFFF#000000##000000
##FEF07D1.001.1717.9717.97
#FFFFFF1.171.0021.0021.00
#00000017.9721.001.001.00
##00000017.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEA73
Deuteranopia (green-blind)
#FFF082
Tritanopia (blue-blind)
#FFE2D6
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #fef07d;
/* rgb */ color: rgb(254, 240, 125);
/* oklch */ color: oklch(94.3% 0.137 102.4);
Tailwind
colors: {
  custom: {
    50: '#fff4a5',
    500: '#fef07d',
    950: '#000000',
  },
}
SCSS
$custom: #fef07d;
$custom-light: #fff4a5;
$custom-dark: #000000;
JSON
{
  "hex": "#fef07d",
  "rgb": {
    "r": 254,
    "g": 240,
    "b": 125
  },
  "hsl": {
    "h": 53.488,
    "s": 98.473,
    "l": 74.314
  },
  "oklch": {
    "l": 0.9434,
    "c": 0.13705,
    "h": 102.4
  },
  "luminance": 0.84872
}

Semantic roles & 50–950 ramp

primary
#FEF07D
secondary
#4353DC
accent
#19E600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF07D

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

Preview Lab → · Contrast checker → · Palette generator →

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