#FEF790#FEF790

#FEF790 is a very light, vivid yellow. Relative luminance 0.896; OKLCH L 96.0% C 0.125 H 105.1°. Best body text is #000000 at 18.92:1 contrast (WCAG AA passes).

Color values

HEX#FEF790
RGBrgb(254, 247, 144)
HSLhsl(56, 98%, 78%)
HSVhsv(56, 43%, 100%)
CMYKcmyk(0%, 2.8%, 43.3%, 0.4%)
CIE-LABlab(95.83, -11.60, 50.17)
CIE-LCHlch(95.83, 51.49, 103.02°)
OKLaboklab(96.01% -0.0326 0.1209)
OKLCHoklch(96.01% 0.125 105.1)
XYZxyz(79.1695, 89.6081, 39.5058)
Luminance0.8961 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF790 #9097FE
analogous
#FEC090 #FEF790 #CEFE90
triadic
#FEF790 #90FEF7 #F790FE
tetradic
#FEF790 #90FEC0 #9097FE #FE90CE
square
#FEF790 #90FEC0 #9097FE #FE90CE
split-complementary
#FEF790 #90CEFE #C090FE
monochromatic
#FDEE17 #FDF353 #FEF790 #FFFBCD #FFFDE1

Accessibility & contrast

On white

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

On black

18.92
#FEF790 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF790
18.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF790#FFFFFF#000000##000000
##FEF7901.001.1118.9218.92
#FFFFFF1.111.0021.0021.00
#00000018.9221.001.001.00
##00000018.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF088
Deuteranopia (green-blind)
#FFF595
Tritanopia (blue-blind)
#FFEBDE
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fef790;
/* rgb */ color: rgb(254, 247, 144);
/* oklch */ color: oklch(96.0% 0.125 105.1);
Tailwind
colors: {
  custom: {
    50: '#fff9b2',
    500: '#fef790',
    950: '#000000',
  },
}
SCSS
$custom: #fef790;
$custom-light: #fff9b2;
$custom-dark: #000000;
JSON
{
  "hex": "#fef790",
  "rgb": {
    "r": 254,
    "g": 247,
    "b": 144
  },
  "hsl": {
    "h": 56.182,
    "s": 98.214,
    "l": 78.039
  },
  "oklch": {
    "l": 0.96005,
    "c": 0.12521,
    "h": 105.1
  },
  "luminance": 0.89606
}

Semantic roles & 50–950 ramp

primary
#FEF790
secondary
#535CDF
accent
#0FE600
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181711
muted
#868581

Preview Lab

Preview with #FEF790

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

Preview Lab → · Contrast checker → · Palette generator →

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