#FEF97F#FEF97F

#FEF97F is a very light, vivid yellow. Relative luminance 0.904; OKLCH L 96.2% C 0.144 H 106.7°. Best body text is #000000 at 19.07:1 contrast (WCAG AA passes).

Color values

HEX#FEF97F
RGBrgb(254, 249, 127)
HSLhsl(58, 98%, 75%)
HSVhsv(58, 50%, 100%)
CMYKcmyk(0%, 2%, 50%, 0.4%)
CIE-LABlab(96.14, -14.10, 58.50)
CIE-LCHlch(96.14, 60.18, 103.55°)
OKLaboklab(96.19% -0.0414 0.138)
OKLCHoklch(96.19% 0.144 106.7)
XYZxyz(78.5815, 90.3567, 33.3757)
Luminance0.9035 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF97F #7F84FE
analogous
#FEBA7F #FEF97F #C3FE7F
triadic
#FEF97F #7FFEF9 #F97FFE
tetradic
#FEF97F #7FFEBA #7F84FE #FE7FC3
square
#FEF97F #7FFEBA #7F84FE #FE7FC3
split-complementary
#FEF97F #7FC3FE #BA7FFE
monochromatic
#FDF306 #FEF642 #FEF97F #FEFCBC #FFFEE1

Accessibility & contrast

On white

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

On black

19.07
#FEF97F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF97F
19.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF97F#FFFFFF#000000##000000
##FEF97F1.001.1019.0719.07
#FFFFFF1.101.0021.0021.00
#00000019.0721.001.001.00
##00000019.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF174
Deuteranopia (green-blind)
#FFF685
Tritanopia (blue-blind)
#FFECDD
Achromatopsia (no color)
#F4F4F4

Design tokens & code

CSS
--color: #fef97f;
/* rgb */ color: rgb(254, 249, 127);
/* oklch */ color: oklch(96.2% 0.144 106.7);
Tailwind
colors: {
  custom: {
    50: '#fffba7',
    500: '#fef97f',
    950: '#000000',
  },
}
SCSS
$custom: #fef97f;
$custom-light: #fffba7;
$custom-dark: #000000;
JSON
{
  "hex": "#fef97f",
  "rgb": {
    "r": 254,
    "g": 249,
    "b": 127
  },
  "hsl": {
    "h": 57.638,
    "s": 98.45,
    "l": 74.706
  },
  "oklch": {
    "l": 0.96187,
    "c": 0.14408,
    "h": 106.7
  },
  "luminance": 0.90355
}

Semantic roles & 50–950 ramp

primary
#FEF97F
secondary
#454BDD
accent
#09E600
background
#FFFFFD
surface
#FFFFF7
border
#D7D7D0
text
#181710
muted
#868581

Preview Lab

Preview with #FEF97F

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

Preview Lab → · Contrast checker → · Palette generator →

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