#FEF296#FEF296

#FEF296 is a very light, moderate yellow. Relative luminance 0.868; OKLCH L 95.1% C 0.114 H 101.8°. Best body text is #000000 at 18.36:1 contrast (WCAG AA passes).

Color values

HEX#FEF296
RGBrgb(254, 242, 150)
HSLhsl(53, 98%, 79%)
HSVhsv(53, 41%, 100%)
CMYKcmyk(0%, 4.7%, 40.9%, 0.4%)
CIE-LABlab(94.64, -8.53, 45.78)
CIE-LCHlch(94.64, 46.57, 100.56°)
OKLaboklab(95.09% -0.0233 0.1113)
OKLCHoklch(95.09% 0.114 101.8)
XYZxyz(78.1318, 86.7793, 41.4826)
Luminance0.8678 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF296 #96A2FE
analogous
#FEBE96 #FEF296 #D6FE96
triadic
#FEF296 #96FEF2 #F296FE
tetradic
#FEF296 #96FEBE #96A2FE #FE96D6
square
#FEF296 #96FEBE #96A2FE #FE96D6
split-complementary
#FEF296 #96D6FE #BE96FE
monochromatic
#FDE31D #FDEA59 #FEF296 #FFFAD3 #FFFBE1

Accessibility & contrast

On white

1.14
#FEF296 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.36
#FEF296 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF296
18.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF296#FFFFFF#000000##000000
##FEF2961.001.1418.3618.36
#FFFFFF1.141.0021.0021.00
#00000018.3621.001.001.00
##00000018.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC8F
Deuteranopia (green-blind)
#FFF29A
Tritanopia (blue-blind)
#FFE6DB
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #fef296;
/* rgb */ color: rgb(254, 242, 150);
/* oklch */ color: oklch(95.1% 0.114 101.8);
Tailwind
colors: {
  custom: {
    50: '#fff6b6',
    500: '#fef296',
    950: '#000000',
  },
}
SCSS
$custom: #fef296;
$custom-light: #fff6b6;
$custom-dark: #000000;
JSON
{
  "hex": "#fef296",
  "rgb": {
    "r": 254,
    "g": 242,
    "b": 150
  },
  "hsl": {
    "h": 53.077,
    "s": 98.113,
    "l": 79.216
  },
  "oklch": {
    "l": 0.95087,
    "c": 0.11375,
    "h": 101.8
  },
  "luminance": 0.86777
}

Semantic roles & 50–950 ramp

primary
#FEF296
secondary
#5868E0
accent
#1AE600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181711
muted
#868581

Preview Lab

Preview with #FEF296

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

Preview Lab → · Contrast checker → · Palette generator →

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