#FEF291#FEF291

#FEF291 is a very light, moderate yellow. Relative luminance 0.866; OKLCH L 95.0% C 0.119 H 102.2°. Best body text is #000000 at 18.32:1 contrast (WCAG AA passes).

Color values

HEX#FEF291
RGBrgb(254, 242, 145)
HSLhsl(53, 98%, 78%)
HSVhsv(53, 43%, 100%)
CMYKcmyk(0%, 4.7%, 42.9%, 0.4%)
CIE-LABlab(94.58, -9.03, 48.12)
CIE-LCHlch(94.58, 48.96, 100.63°)
OKLaboklab(95.01% -0.0252 0.1164)
OKLCHoklch(95.01% 0.119 102.2)
XYZxyz(77.7377, 86.6217, 39.4073)
Luminance0.8662 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF291 #919DFE
analogous
#FEBB91 #FEF291 #D4FE91
triadic
#FEF291 #91FEF2 #F291FE
tetradic
#FEF291 #91FEBB #919DFE #FE91D4
square
#FEF291 #91FEBB #919DFE #FE91D4
split-complementary
#FEF291 #91D4FE #BB91FE
monochromatic
#FDE418 #FDEB54 #FEF291 #FFF9CE #FFFBE1

Accessibility & contrast

On white

1.15
#FEF291 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.32
#FEF291 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF291
18.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF291#FFFFFF#000000##000000
##FEF2911.001.1518.3218.32
#FFFFFF1.151.0021.0021.00
#00000018.3221.001.001.00
##00000018.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC89
Deuteranopia (green-blind)
#FFF295
Tritanopia (blue-blind)
#FFE6DA
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #fef291;
/* rgb */ color: rgb(254, 242, 145);
/* oklch */ color: oklch(95.0% 0.119 102.2);
Tailwind
colors: {
  custom: {
    50: '#fff6b3',
    500: '#fef291',
    950: '#000000',
  },
}
SCSS
$custom: #fef291;
$custom-light: #fff6b3;
$custom-dark: #000000;
JSON
{
  "hex": "#fef291",
  "rgb": {
    "r": 254,
    "g": 242,
    "b": 145
  },
  "hsl": {
    "h": 53.394,
    "s": 98.198,
    "l": 78.235
  },
  "oklch": {
    "l": 0.95012,
    "c": 0.11905,
    "h": 102.2
  },
  "luminance": 0.86619
}

Semantic roles & 50–950 ramp

primary
#FEF291
secondary
#5463DF
accent
#19E600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181711
muted
#868581

Preview Lab

Preview with #FEF291

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

Preview Lab → · Contrast checker → · Palette generator →

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