#FEF698#FEF698

#FEF698 is a very light, moderate yellow. Relative luminance 0.892; OKLCH L 95.9% C 0.116 H 104.1°. Best body text is #000000 at 18.85:1 contrast (WCAG AA passes).

Color values

HEX#FEF698
RGBrgb(254, 246, 152)
HSLhsl(55, 98%, 80%)
HSVhsv(55, 40%, 100%)
CMYKcmyk(0%, 3.1%, 40.2%, 0.4%)
CIE-LABlab(95.69, -10.31, 46.12)
CIE-LCHlch(95.69, 47.26, 102.60°)
OKLaboklab(95.92% -0.0283 0.1122)
OKLCHoklch(95.92% 0.116 104.1)
XYZxyz(79.4977, 89.2514, 42.7392)
Luminance0.8925 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF698 #98A0FE
analogous
#FEC398 #FEF698 #D3FE98
triadic
#FEF698 #98FEF6 #F698FE
tetradic
#FEF698 #98FEC3 #98A0FE #FE98D3
square
#FEF698 #98FEC3 #98A0FE #FE98D3
split-complementary
#FEF698 #98D3FE #C398FE
monochromatic
#FDEB1F #FDF15B #FEF698 #FFFBD5 #FFFCE1

Accessibility & contrast

On white

1.11
#FEF698 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.85
#FEF698 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF698
18.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF698#FFFFFF#000000##000000
##FEF6981.001.1118.8518.85
#FFFFFF1.111.0021.0021.00
#00000018.8521.001.001.00
##00000018.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF091
Deuteranopia (green-blind)
#FFF59C
Tritanopia (blue-blind)
#FFEADF
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fef698;
/* rgb */ color: rgb(254, 246, 152);
/* oklch */ color: oklch(95.9% 0.116 104.1);
Tailwind
colors: {
  custom: {
    50: '#fff9b7',
    500: '#fef698',
    950: '#000000',
  },
}
SCSS
$custom: #fef698;
$custom-light: #fff9b7;
$custom-dark: #000000;
JSON
{
  "hex": "#fef698",
  "rgb": {
    "r": 254,
    "g": 246,
    "b": 152
  },
  "hsl": {
    "h": 55.294,
    "s": 98.077,
    "l": 79.608
  },
  "oklch": {
    "l": 0.95921,
    "c": 0.11572,
    "h": 104.1
  },
  "luminance": 0.89249
}

Semantic roles & 50–950 ramp

primary
#FEF698
secondary
#5A64E0
accent
#12E600
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181711
muted
#868581

Preview Lab

Preview with #FEF698

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

Preview Lab → · Contrast checker → · Palette generator →

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