#FEF772#FEF772

#FEF772 is a very light, vivid yellow. Relative luminance 0.888; OKLCH L 95.6% C 0.154 H 106.2°. Best body text is #000000 at 18.76:1 contrast (WCAG AA passes).

Color values

HEX#FEF772
RGBrgb(254, 247, 114)
HSLhsl(57, 99%, 72%)
HSVhsv(57, 55%, 100%)
CMYKcmyk(0%, 2.8%, 55.1%, 0.4%)
CIE-LABlab(95.50, -14.15, 63.57)
CIE-LCHlch(95.50, 65.13, 102.55°)
OKLaboklab(95.63% -0.0429 0.1477)
OKLCHoklch(95.63% 0.154 106.2)
XYZxyz(77.1734, 88.8096, 28.9931)
Luminance0.8881 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF772 #7279FE
analogous
#FEB172 #FEF772 #BFFE72
triadic
#FEF772 #72FEF7 #F772FE
tetradic
#FEF772 #72FEB1 #7279FE #FE72BF
square
#FEF772 #72FEB1 #7279FE #FE72BF
split-complementary
#FEF772 #72BFFE #B172FE
monochromatic
#F4E802 #FEF435 #FEF772 #FEFAAF #FFFDE1

Accessibility & contrast

On white

1.12
#FEF772 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.76
#FEF772 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF772
18.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF772#FFFFFF#000000##000000
##FEF7721.001.1218.7618.76
#FFFFFF1.121.0021.0021.00
#00000018.7621.001.001.00
##00000018.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF64
Deuteranopia (green-blind)
#FFF579
Tritanopia (blue-blind)
#FFE9DA
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #fef772;
/* rgb */ color: rgb(254, 247, 114);
/* oklch */ color: oklch(95.6% 0.154 106.2);
Tailwind
colors: {
  custom: {
    50: '#fff99e',
    500: '#fef772',
    950: '#000000',
  },
}
SCSS
$custom: #fef772;
$custom-light: #fff99e;
$custom-dark: #000000;
JSON
{
  "hex": "#fef772",
  "rgb": {
    "r": 254,
    "g": 247,
    "b": 114
  },
  "hsl": {
    "h": 57,
    "s": 98.592,
    "l": 72.157
  },
  "oklch": {
    "l": 0.95632,
    "c": 0.15377,
    "h": 106.2
  },
  "luminance": 0.88807
}

Semantic roles & 50–950 ramp

primary
#FEF772
secondary
#3941DB
accent
#0BE600
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF772

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

Preview Lab → · Contrast checker → · Palette generator →

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