#FEF974#FEF974

#FEF974 is a very light, vivid yellow. Relative luminance 0.901; OKLCH L 96.1% C 0.154 H 107.0°. Best body text is #000000 at 19.02:1 contrast (WCAG AA passes).

Color values

HEX#FEF974
RGBrgb(254, 249, 116)
HSLhsl(58, 99%, 73%)
HSVhsv(58, 54%, 100%)
CMYKcmyk(0%, 2%, 54.3%, 0.4%)
CIE-LABlab(96.03, -14.97, 63.30)
CIE-LCHlch(96.03, 65.05, 103.31°)
OKLaboklab(96.06% -0.045 0.1473)
OKLCHoklch(96.06% 0.154 107)
XYZxyz(77.9034, 90.0854, 29.8041)
Luminance0.9008 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF974 #7479FE
analogous
#FEB474 #FEF974 #BEFE74
triadic
#FEF974 #74FEF9 #F974FE
tetradic
#FEF974 #74FEB4 #7479FE #FE74BE
square
#FEF974 #74FEB4 #7479FE #FE74BE
split-complementary
#FEF974 #74BEFE #B474FE
monochromatic
#F6ED02 #FEF637 #FEF974 #FEFCB1 #FFFEE1

Accessibility & contrast

On white

1.10
#FEF974 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.02
#FEF974 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF974
19.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF974#FFFFFF#000000##000000
##FEF9741.001.1019.0219.02
#FFFFFF1.101.0021.0021.00
#00000019.0221.001.001.00
##00000019.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF167
Deuteranopia (green-blind)
#FFF67B
Tritanopia (blue-blind)
#FFEBDC
Achromatopsia (no color)
#F4F4F4

Design tokens & code

CSS
--color: #fef974;
/* rgb */ color: rgb(254, 249, 116);
/* oklch */ color: oklch(96.1% 0.154 107.0);
Tailwind
colors: {
  custom: {
    50: '#fffba0',
    500: '#fef974',
    950: '#000000',
  },
}
SCSS
$custom: #fef974;
$custom-light: #fffba0;
$custom-dark: #000000;
JSON
{
  "hex": "#fef974",
  "rgb": {
    "r": 254,
    "g": 249,
    "b": 116
  },
  "hsl": {
    "h": 57.826,
    "s": 98.571,
    "l": 72.549
  },
  "oklch": {
    "l": 0.96061,
    "c": 0.15402,
    "h": 107
  },
  "luminance": 0.90083
}

Semantic roles & 50–950 ramp

primary
#FEF974
secondary
#3B41DB
accent
#08E600
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF974

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

Preview Lab → · Contrast checker → · Palette generator →

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