#FEF972#FEF972

#FEF972 is a very light, vivid yellow. Relative luminance 0.900; OKLCH L 96.0% C 0.156 H 107.0°. Best body text is #000000 at 19.01:1 contrast (WCAG AA passes).

Color values

HEX#FEF972
RGBrgb(254, 249, 114)
HSLhsl(58, 99%, 72%)
HSVhsv(58, 55%, 100%)
CMYKcmyk(0%, 2%, 55.1%, 0.4%)
CIE-LABlab(96.01, -15.12, 64.15)
CIE-LCHlch(96.01, 65.91, 103.26°)
OKLaboklab(96.04% -0.0456 0.1489)
OKLCHoklch(96.04% 0.156 107)
XYZxyz(77.7883, 90.0394, 29.1980)
Luminance0.9004 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF972 #7277FE
analogous
#FEB372 #FEF972 #BDFE72
triadic
#FEF972 #72FEF9 #F972FE
tetradic
#FEF972 #72FEB3 #7277FE #FE72BD
square
#FEF972 #72FEB3 #7277FE #FE72BD
split-complementary
#FEF972 #72BDFE #B372FE
monochromatic
#F4EB02 #FEF635 #FEF972 #FEFCAF #FFFEE1

Accessibility & contrast

On white

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

On black

19.01
#FEF972 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF972
19.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF972#FFFFFF#000000##000000
##FEF9721.001.1019.0119.01
#FFFFFF1.101.0021.0021.00
#00000019.0121.001.001.00
##00000019.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF064
Deuteranopia (green-blind)
#FFF679
Tritanopia (blue-blind)
#FFEBDB
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fef972;
/* rgb */ color: rgb(254, 249, 114);
/* oklch */ color: oklch(96.0% 0.156 107.0);
Tailwind
colors: {
  custom: {
    50: '#fffb9f',
    500: '#fef972',
    950: '#000000',
  },
}
SCSS
$custom: #fef972;
$custom-light: #fffb9f;
$custom-dark: #000000;
JSON
{
  "hex": "#fef972",
  "rgb": {
    "r": 254,
    "g": 249,
    "b": 114
  },
  "hsl": {
    "h": 57.857,
    "s": 98.592,
    "l": 72.157
  },
  "oklch": {
    "l": 0.9604,
    "c": 0.15575,
    "h": 107
  },
  "luminance": 0.90037
}

Semantic roles & 50–950 ramp

primary
#FEF972
secondary
#393FDB
accent
#08E600
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF972

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

Preview Lab → · Contrast checker → · Palette generator →

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