#FEF196#FEF196

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

Color values

HEX#FEF196
RGBrgb(254, 241, 150)
HSLhsl(53, 98%, 79%)
HSVhsv(53, 41%, 100%)
CMYKcmyk(0%, 5.1%, 40.9%, 0.4%)
CIE-LABlab(94.39, -8.04, 45.46)
CIE-LCHlch(94.39, 46.16, 100.03°)
OKLaboklab(94.89% -0.0219 0.1106)
OKLCHoklch(94.89% 0.113 101.2)
XYZxyz(77.8349, 86.1857, 41.3837)
Luminance0.8618 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF196 #96A3FE
analogous
#FEBD96 #FEF196 #D7FE96
triadic
#FEF196 #96FEF1 #F196FE
tetradic
#FEF196 #96FEBD #96A3FE #FE96D7
square
#FEF196 #96FEBD #96A3FE #FE96D7
split-complementary
#FEF196 #96D7FE #BD96FE
monochromatic
#FDE11D #FDE959 #FEF196 #FFF9D3 #FFFBE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##FEF196#FFFFFF#000000##000000
##FEF1961.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)
#FFEC8F
Deuteranopia (green-blind)
#FFF19A
Tritanopia (blue-blind)
#FFE5DB
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #fef196;
/* rgb */ color: rgb(254, 241, 150);
/* oklch */ color: oklch(94.9% 0.113 101.2);
Tailwind
colors: {
  custom: {
    50: '#fff5b6',
    500: '#fef196',
    950: '#000000',
  },
}
SCSS
$custom: #fef196;
$custom-light: #fff5b6;
$custom-dark: #000000;
JSON
{
  "hex": "#fef196",
  "rgb": {
    "r": 254,
    "g": 241,
    "b": 150
  },
  "hsl": {
    "h": 52.5,
    "s": 98.113,
    "l": 79.216
  },
  "oklch": {
    "l": 0.94886,
    "c": 0.11275,
    "h": 101.2
  },
  "luminance": 0.86183
}

Semantic roles & 50–950 ramp

primary
#FEF196
secondary
#5869E0
accent
#1DE600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181711
muted
#868581

Preview Lab

Preview with #FEF196

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

Preview Lab → · Contrast checker → · Palette generator →

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