#FEF072#FEF072

#FEF072 is a very light, vivid yellow. Relative luminance 0.846; OKLCH L 94.2% C 0.147 H 103.0°. Best body text is #000000 at 17.92:1 contrast (WCAG AA passes).

Color values

HEX#FEF072
RGBrgb(254, 240, 114)
HSLhsl(54, 99%, 72%)
HSVhsv(54, 55%, 100%)
CMYKcmyk(0%, 5.5%, 55.1%, 0.4%)
CIE-LABlab(93.71, -10.72, 61.54)
CIE-LCHlch(93.71, 62.46, 99.88°)
OKLaboklab(94.21% -0.0331 0.1433)
OKLCHoklch(94.21% 0.147 103)
XYZxyz(75.0729, 84.6086, 28.2929)
Luminance0.8461 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF072 #7280FE
analogous
#FEAA72 #FEF072 #C6FE72
triadic
#FEF072 #72FEF0 #F072FE
tetradic
#FEF072 #72FEAA #7280FE #FE72C6
square
#FEF072 #72FEAA #7280FE #FE72C6
split-complementary
#FEF072 #72C6FE #AA72FE
monochromatic
#F4DC02 #FEEA35 #FEF072 #FEF6AF #FFFCE1

Accessibility & contrast

On white

1.17
#FEF072 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.92
#FEF072 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF072
17.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF072#FFFFFF#000000##000000
##FEF0721.001.1717.9217.92
#FFFFFF1.171.0021.0021.00
#00000017.9221.001.001.00
##00000017.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE965
Deuteranopia (green-blind)
#FFF078
Tritanopia (blue-blind)
#FFE2D4
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #fef072;
/* rgb */ color: rgb(254, 240, 114);
/* oklch */ color: oklch(94.2% 0.147 103.0);
Tailwind
colors: {
  custom: {
    50: '#fff49e',
    500: '#fef072',
    950: '#000000',
  },
}
SCSS
$custom: #fef072;
$custom-light: #fff49e;
$custom-dark: #000000;
JSON
{
  "hex": "#fef072",
  "rgb": {
    "r": 254,
    "g": 240,
    "b": 114
  },
  "hsl": {
    "h": 54,
    "s": 98.592,
    "l": 72.157
  },
  "oklch": {
    "l": 0.94212,
    "c": 0.14706,
    "h": 103
  },
  "luminance": 0.84606
}

Semantic roles & 50–950 ramp

primary
#FEF072
secondary
#394ADB
accent
#17E600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF072

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

Preview Lab → · Contrast checker → · Palette generator →

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