#FEF897#FEF897

#FEF897 is a very light, moderate yellow. Relative luminance 0.904; OKLCH L 96.3% C 0.119 H 105.3°. Best body text is #000000 at 19.09:1 contrast (WCAG AA passes).

Color values

HEX#FEF897
RGBrgb(254, 248, 151)
HSLhsl(57, 98%, 79%)
HSVhsv(57, 41%, 100%)
CMYKcmyk(0%, 2.4%, 40.6%, 0.4%)
CIE-LABlab(96.18, -11.39, 47.23)
CIE-LCHlch(96.18, 48.59, 103.56°)
OKLaboklab(96.31% -0.0315 0.1147)
OKLCHoklch(96.31% 0.119 105.3)
XYZxyz(80.0278, 90.4420, 42.5135)
Luminance0.9044 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF897 #979DFE
analogous
#FEC597 #FEF897 #D1FE97
triadic
#FEF897 #97FEF8 #F897FE
tetradic
#FEF897 #97FEC5 #979DFE #FE97D1
square
#FEF897 #97FEC5 #979DFE #FE97D1
split-complementary
#FEF897 #97D1FE #C597FE
monochromatic
#FDF01E #FDF45A #FEF897 #FFFCD4 #FFFDE1

Accessibility & contrast

On white

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

On black

19.09
#FEF897 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF897
19.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF897#FFFFFF#000000##000000
##FEF8971.001.1019.0919.09
#FFFFFF1.101.0021.0021.00
#00000019.0921.001.001.00
##00000019.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF18F
Deuteranopia (green-blind)
#FFF69B
Tritanopia (blue-blind)
#FFECE0
Achromatopsia (no color)
#F4F4F4

Design tokens & code

CSS
--color: #fef897;
/* rgb */ color: rgb(254, 248, 151);
/* oklch */ color: oklch(96.3% 0.119 105.3);
Tailwind
colors: {
  custom: {
    50: '#fffab7',
    500: '#fef897',
    950: '#000000',
  },
}
SCSS
$custom: #fef897;
$custom-light: #fffab7;
$custom-dark: #000000;
JSON
{
  "hex": "#fef897",
  "rgb": {
    "r": 254,
    "g": 248,
    "b": 151
  },
  "hsl": {
    "h": 56.505,
    "s": 98.095,
    "l": 79.412
  },
  "oklch": {
    "l": 0.96309,
    "c": 0.11893,
    "h": 105.3
  },
  "luminance": 0.9044
}

Semantic roles & 50–950 ramp

primary
#FEF897
secondary
#5961E0
accent
#0DE600
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181711
muted
#868581

Preview Lab

Preview with #FEF897

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

Preview Lab → · Contrast checker → · Palette generator →

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