#FEF97D#FEF97D

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

Color values

HEX#FEF97D
RGBrgb(254, 249, 125)
HSLhsl(58, 98%, 74%)
HSVhsv(58, 51%, 100%)
CMYKcmyk(0%, 2%, 50.8%, 0.4%)
CIE-LABlab(96.12, -14.27, 59.39)
CIE-LCHlch(96.12, 61.08, 103.51°)
OKLaboklab(96.16% -0.0421 0.1397)
OKLCHoklch(96.16% 0.146 106.8)
XYZxyz(78.4524, 90.3050, 32.6960)
Luminance0.9030 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF97D #7D82FE
analogous
#FEB87D #FEF97D #C3FE7D
triadic
#FEF97D #7DFEF9 #F97DFE
tetradic
#FEF97D #7DFEB8 #7D82FE #FE7DC3
square
#FEF97D #7DFEB8 #7D82FE #FE7DC3
split-complementary
#FEF97D #7DC3FE #B87DFE
monochromatic
#FDF304 #FEF640 #FEF97D #FEFCBA #FFFEE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##FEF97D#FFFFFF#000000##000000
##FEF97D1.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)
#FFF171
Deuteranopia (green-blind)
#FFF683
Tritanopia (blue-blind)
#FFEBDD
Achromatopsia (no color)
#F4F4F4

Design tokens & code

CSS
--color: #fef97d;
/* rgb */ color: rgb(254, 249, 125);
/* oklch */ color: oklch(96.2% 0.146 106.8);
Tailwind
colors: {
  custom: {
    50: '#fffba6',
    500: '#fef97d',
    950: '#000000',
  },
}
SCSS
$custom: #fef97d;
$custom-light: #fffba6;
$custom-dark: #000000;
JSON
{
  "hex": "#fef97d",
  "rgb": {
    "r": 254,
    "g": 249,
    "b": 125
  },
  "hsl": {
    "h": 57.674,
    "s": 98.473,
    "l": 74.314
  },
  "oklch": {
    "l": 0.96163,
    "c": 0.14594,
    "h": 106.8
  },
  "luminance": 0.90303
}

Semantic roles & 50–950 ramp

primary
#FEF97D
secondary
#4349DC
accent
#09E600
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#181710
muted
#868580

Preview Lab

Preview with #FEF97D

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

Preview Lab → · Contrast checker → · Palette generator →

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