#FEF874#FEF874

#FEF874 is a very light, vivid yellow. Relative luminance 0.895; OKLCH L 95.9% C 0.153 H 106.6°. Best body text is #000000 at 18.89:1 contrast (WCAG AA passes).

Color values

HEX#FEF874
RGBrgb(254, 248, 116)
HSLhsl(57, 99%, 73%)
HSVhsv(57, 54%, 100%)
CMYKcmyk(0%, 2.4%, 54.3%, 0.4%)
CIE-LABlab(95.78, -14.49, 63.01)
CIE-LCHlch(95.78, 64.65, 102.95°)
OKLaboklab(95.86% -0.0436 0.1467)
OKLCHoklch(95.86% 0.153 106.6)
XYZxyz(77.5951, 89.4689, 29.7014)
Luminance0.8947 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF874 #747AFE
analogous
#FEB374 #FEF874 #BFFE74
triadic
#FEF874 #74FEF8 #F874FE
tetradic
#FEF874 #74FEB3 #747AFE #FE74BF
square
#FEF874 #74FEB3 #747AFE #FE74BF
split-complementary
#FEF874 #74BFFE #B374FE
monochromatic
#F6EB02 #FEF537 #FEF874 #FEFBB1 #FFFDE1

Accessibility & contrast

On white

1.11
#FEF874 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.89
#FEF874 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF874
18.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF874#FFFFFF#000000##000000
##FEF8741.001.1118.8918.89
#FFFFFF1.111.0021.0021.00
#00000018.8921.001.001.00
##00000018.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF067
Deuteranopia (green-blind)
#FFF57B
Tritanopia (blue-blind)
#FFEADB
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fef874;
/* rgb */ color: rgb(254, 248, 116);
/* oklch */ color: oklch(95.9% 0.153 106.6);
Tailwind
colors: {
  custom: {
    50: '#fffaa0',
    500: '#fef874',
    950: '#000000',
  },
}
SCSS
$custom: #fef874;
$custom-light: #fffaa0;
$custom-dark: #000000;
JSON
{
  "hex": "#fef874",
  "rgb": {
    "r": 254,
    "g": 248,
    "b": 116
  },
  "hsl": {
    "h": 57.391,
    "s": 98.571,
    "l": 72.549
  },
  "oklch": {
    "l": 0.95857,
    "c": 0.15302,
    "h": 106.6
  },
  "luminance": 0.89467
}

Semantic roles & 50–950 ramp

primary
#FEF874
secondary
#3B42DB
accent
#0AE600
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF874

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

Preview Lab → · Contrast checker → · Palette generator →

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