#FBF798#FBF798

#FBF798 is a very light, moderate yellow. Relative luminance 0.893; OKLCH L 95.9% C 0.117 H 106.3°. Best body text is #000000 at 18.86:1 contrast (WCAG AA passes).

Color values

HEX#FBF798
RGBrgb(251, 247, 152)
HSLhsl(58, 93%, 79%)
HSVhsv(58, 39%, 98%)
CMYKcmyk(0%, 1.6%, 39.4%, 1.6%)
CIE-LABlab(95.71, -11.95, 46.10)
CIE-LCHlch(95.71, 47.62, 104.53°)
OKLaboklab(95.88% -0.0328 0.1122)
OKLCHoklch(95.88% 0.117 106.3)
XYZxyz(78.7132, 89.2996, 42.7898)
Luminance0.8930 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FBF798 #989CFB
analogous
#FBC698 #FBF798 #CEFB98
triadic
#FBF798 #98FBF7 #F798FB
tetradic
#FBF798 #98FBC6 #989CFB #FB98CE
square
#FBF798 #98FBC6 #989CFB #FB98CE
split-complementary
#FBF798 #98CEFB #C698FB
monochromatic
#F6EE22 #F9F25D #FBF798 #FDFCD3 #FEFDE2

Accessibility & contrast

On white

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

On black

18.86
#FBF798 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FBF798
18.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FBF798#FFFFFF#000000##000000
##FBF7981.001.1118.8618.86
#FFFFFF1.111.0021.0021.00
#00000018.8621.001.001.00
##00000018.8621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #fbf798;
/* rgb */ color: rgb(251, 247, 152);
/* oklch */ color: oklch(95.9% 0.117 106.3);
Tailwind
colors: {
  custom: {
    50: '#fef9b7',
    500: '#fbf798',
    950: '#000000',
  },
}
SCSS
$custom: #fbf798;
$custom-light: #fef9b7;
$custom-dark: #000000;
JSON
{
  "hex": "#fbf798",
  "rgb": {
    "r": 251,
    "g": 247,
    "b": 152
  },
  "hsl": {
    "h": 57.576,
    "s": 92.523,
    "l": 79.02
  },
  "oklch": {
    "l": 0.9588,
    "c": 0.11691,
    "h": 106.3
  },
  "luminance": 0.89298
}

Semantic roles & 50–950 ramp

primary
#FBF798
secondary
#5B60DC
accent
#09E600
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181711
muted
#868581

Preview Lab

Preview with #FBF798

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

Preview Lab → · Contrast checker → · Palette generator →

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