#FEF97C#FEF97C

#FEF97C is a very light, vivid yellow. Relative luminance 0.903; OKLCH L 96.2% C 0.147 H 106.8°. Best body text is #000000 at 19.06:1 contrast (WCAG AA passes).

Color values

HEX#FEF97C
RGBrgb(254, 249, 124)
HSLhsl(58, 98%, 74%)
HSVhsv(58, 51%, 100%)
CMYKcmyk(0%, 2%, 51.2%, 0.4%)
CIE-LABlab(96.11, -14.35, 59.83)
CIE-LCHlch(96.11, 61.52, 103.49°)
OKLaboklab(96.15% -0.0424 0.1406)
OKLCHoklch(96.15% 0.147 106.8)
XYZxyz(78.3889, 90.2796, 32.3613)
Luminance0.9028 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF97C #7C81FE
analogous
#FEB87C #FEF97C #C2FE7C
triadic
#FEF97C #7CFEF9 #F97CFE
tetradic
#FEF97C #7CFEB8 #7C81FE #FE7CC2
square
#FEF97C #7CFEB8 #7C81FE #FE7CC2
split-complementary
#FEF97C #7CC2FE #B87CFE
monochromatic
#FDF303 #FEF63F #FEF97C #FEFCB9 #FFFEE1

Accessibility & contrast

On white

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

On black

19.06
#FEF97C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF97C
19.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF97C#FFFFFF#000000##000000
##FEF97C1.001.1019.0619.06
#FFFFFF1.101.0021.0021.00
#00000019.0621.001.001.00
##00000019.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF170
Deuteranopia (green-blind)
#FFF682
Tritanopia (blue-blind)
#FFEBDD
Achromatopsia (no color)
#F4F4F4

Design tokens & code

CSS
--color: #fef97c;
/* rgb */ color: rgb(254, 249, 124);
/* oklch */ color: oklch(96.2% 0.147 106.8);
Tailwind
colors: {
  custom: {
    50: '#fffba5',
    500: '#fef97c',
    950: '#000000',
  },
}
SCSS
$custom: #fef97c;
$custom-light: #fffba5;
$custom-dark: #000000;
JSON
{
  "hex": "#fef97c",
  "rgb": {
    "r": 254,
    "g": 249,
    "b": 124
  },
  "hsl": {
    "h": 57.692,
    "s": 98.485,
    "l": 74.118
  },
  "oklch": {
    "l": 0.96151,
    "c": 0.14687,
    "h": 106.8
  },
  "luminance": 0.90277
}

Semantic roles & 50–950 ramp

primary
#FEF97C
secondary
#4248DC
accent
#09E600
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF97C

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

Preview Lab → · Contrast checker → · Palette generator →

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