#FEF197#FEF197

#FEF197 is a very light, moderate yellow. Relative luminance 0.862; OKLCH L 94.9% C 0.112 H 101.1°. Best body text is #000000 at 18.24:1 contrast (WCAG AA passes).

Color values

HEX#FEF197
RGBrgb(254, 241, 151)
HSLhsl(52, 98%, 79%)
HSVhsv(52, 41%, 100%)
CMYKcmyk(0%, 5.1%, 40.6%, 0.4%)
CIE-LABlab(94.41, -7.94, 44.99)
CIE-LCHlch(94.41, 45.68, 100.00°)
OKLaboklab(94.9% -0.0215 0.1096)
OKLCHoklch(94.9% 0.112 101.1)
XYZxyz(77.9158, 86.2180, 41.8095)
Luminance0.8622 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF197 #97A4FE
analogous
#FEBE97 #FEF197 #D8FE97
triadic
#FEF197 #97FEF1 #F197FE
tetradic
#FEF197 #97FEBE #97A4FE #FE97D8
square
#FEF197 #97FEBE #97A4FE #FE97D8
split-complementary
#FEF197 #97D8FE #BE97FE
monochromatic
#FDE11E #FDE95A #FEF197 #FFF9D4 #FFFBE1

Accessibility & contrast

On white

1.15
#FEF197 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.24
#FEF197 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF197
18.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF197#FFFFFF#000000##000000
##FEF1971.001.1518.2418.24
#FFFFFF1.151.0021.0021.00
#00000018.2421.001.001.00
##00000018.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC90
Deuteranopia (green-blind)
#FFF29B
Tritanopia (blue-blind)
#FFE5DB
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #fef197;
/* rgb */ color: rgb(254, 241, 151);
/* oklch */ color: oklch(94.9% 0.112 101.1);
Tailwind
colors: {
  custom: {
    50: '#fff5b7',
    500: '#fef197',
    950: '#000000',
  },
}
SCSS
$custom: #fef197;
$custom-light: #fff5b7;
$custom-dark: #000000;
JSON
{
  "hex": "#fef197",
  "rgb": {
    "r": 254,
    "g": 241,
    "b": 151
  },
  "hsl": {
    "h": 52.427,
    "s": 98.095,
    "l": 79.412
  },
  "oklch": {
    "l": 0.94902,
    "c": 0.11168,
    "h": 101.1
  },
  "luminance": 0.86216
}

Semantic roles & 50–950 ramp

primary
#FEF197
secondary
#596AE0
accent
#1DE600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181711
muted
#868581

Preview Lab

Preview with #FEF197

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

Preview Lab → · Contrast checker → · Palette generator →

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