#FEF97B#FEF97B

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

Color values

HEX#FEF97B
RGBrgb(254, 249, 123)
HSLhsl(58, 98%, 74%)
HSVhsv(58, 52%, 100%)
CMYKcmyk(0%, 2%, 51.6%, 0.4%)
CIE-LABlab(96.10, -14.43, 60.27)
CIE-LCHlch(96.10, 61.97, 103.47°)
OKLaboklab(96.14% -0.0427 0.1415)
OKLCHoklch(96.14% 0.148 106.8)
XYZxyz(78.3260, 90.2545, 32.0299)
Luminance0.9025 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF97B #7B80FE
analogous
#FEB87B #FEF97B #C2FE7B
triadic
#FEF97B #7BFEF9 #F97BFE
tetradic
#FEF97B #7BFEB8 #7B80FE #FE7BC2
square
#FEF97B #7BFEB8 #7B80FE #FE7BC2
split-complementary
#FEF97B #7BC2FE #B87BFE
monochromatic
#FDF302 #FEF63E #FEF97B #FEFCB8 #FFFEE1

Accessibility & contrast

On white

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

On black

19.05
#FEF97B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF97B
19.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF97B#FFFFFF#000000##000000
##FEF97B1.001.1019.0519.05
#FFFFFF1.101.0021.0021.00
#00000019.0521.001.001.00
##00000019.0521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #fef97b;
/* rgb */ color: rgb(254, 249, 123);
/* oklch */ color: oklch(96.1% 0.148 106.8);
Tailwind
colors: {
  custom: {
    50: '#fffba4',
    500: '#fef97b',
    950: '#000000',
  },
}
SCSS
$custom: #fef97b;
$custom-light: #fffba4;
$custom-dark: #000000;
JSON
{
  "hex": "#fef97b",
  "rgb": {
    "r": 254,
    "g": 249,
    "b": 123
  },
  "hsl": {
    "h": 57.71,
    "s": 98.496,
    "l": 73.922
  },
  "oklch": {
    "l": 0.9614,
    "c": 0.14778,
    "h": 106.8
  },
  "luminance": 0.90252
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #FEF97B

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

Preview Lab → · Contrast checker → · Palette generator →

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