#FEF97E#FEF97E

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

Color values

HEX#FEF97E
RGBrgb(254, 249, 126)
HSLhsl(58, 98%, 75%)
HSVhsv(58, 50%, 100%)
CMYKcmyk(0%, 2%, 50.4%, 0.4%)
CIE-LABlab(96.13, -14.19, 58.94)
CIE-LCHlch(96.13, 60.63, 103.53°)
OKLaboklab(96.18% -0.0417 0.1389)
OKLCHoklch(96.18% 0.145 106.7)
XYZxyz(78.5166, 90.3307, 33.0342)
Luminance0.9033 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF97E #7E83FE
analogous
#FEB97E #FEF97E #C3FE7E
triadic
#FEF97E #7EFEF9 #F97EFE
tetradic
#FEF97E #7EFEB9 #7E83FE #FE7EC3
square
#FEF97E #7EFEB9 #7E83FE #FE7EC3
split-complementary
#FEF97E #7EC3FE #B97EFE
monochromatic
#FDF305 #FEF641 #FEF97E #FEFCBB #FFFEE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##FEF97E#FFFFFF#000000##000000
##FEF97E1.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)
#FFF173
Deuteranopia (green-blind)
#FFF684
Tritanopia (blue-blind)
#FFECDD
Achromatopsia (no color)
#F4F4F4

Design tokens & code

CSS
--color: #fef97e;
/* rgb */ color: rgb(254, 249, 126);
/* oklch */ color: oklch(96.2% 0.145 106.7);
Tailwind
colors: {
  custom: {
    50: '#fffba6',
    500: '#fef97e',
    950: '#000000',
  },
}
SCSS
$custom: #fef97e;
$custom-light: #fffba6;
$custom-dark: #000000;
JSON
{
  "hex": "#fef97e",
  "rgb": {
    "r": 254,
    "g": 249,
    "b": 126
  },
  "hsl": {
    "h": 57.656,
    "s": 98.462,
    "l": 74.51
  },
  "oklch": {
    "l": 0.96175,
    "c": 0.14501,
    "h": 106.7
  },
  "luminance": 0.90329
}

Semantic roles & 50–950 ramp

primary
#FEF97E
secondary
#444ADD
accent
#09E600
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#181710
muted
#868580

Preview Lab

Preview with #FEF97E

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

Preview Lab → · Contrast checker → · Palette generator →

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