#FBF797#FBF797

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

Color values

HEX#FBF797
RGBrgb(251, 247, 151)
HSLhsl(58, 93%, 79%)
HSVhsv(58, 40%, 98%)
CMYKcmyk(0%, 1.6%, 39.8%, 1.6%)
CIE-LABlab(95.69, -12.05, 46.57)
CIE-LCHlch(95.69, 48.10, 104.51°)
OKLaboklab(95.87% -0.0332 0.1132)
OKLCHoklch(95.87% 0.118 106.3)
XYZxyz(78.6316, 89.2669, 42.3603)
Luminance0.8927 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FBF797 #979BFB
analogous
#FBC597 #FBF797 #CDFB97
triadic
#FBF797 #97FBF7 #F797FB
tetradic
#FBF797 #97FBC5 #979BFB #FB97CD
square
#FBF797 #97FBC5 #979BFB #FB97CD
split-complementary
#FBF797 #97CDFB #C597FB
monochromatic
#F6EE21 #F9F25C #FBF797 #FDFCD2 #FEFDE2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##FBF797#FFFFFF#000000##000000
##FBF7971.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)
#FFF090
Deuteranopia (green-blind)
#FFF59B
Tritanopia (blue-blind)
#FFECE0
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fbf797;
/* rgb */ color: rgb(251, 247, 151);
/* oklch */ color: oklch(95.9% 0.118 106.3);
Tailwind
colors: {
  custom: {
    50: '#fef9b7',
    500: '#fbf797',
    950: '#000000',
  },
}
SCSS
$custom: #fbf797;
$custom-light: #fef9b7;
$custom-dark: #000000;
JSON
{
  "hex": "#fbf797",
  "rgb": {
    "r": 251,
    "g": 247,
    "b": 151
  },
  "hsl": {
    "h": 57.6,
    "s": 92.593,
    "l": 78.824
  },
  "oklch": {
    "l": 0.95865,
    "c": 0.11798,
    "h": 106.3
  },
  "luminance": 0.89265
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #FBF797

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

Preview Lab → · Contrast checker → · Palette generator →

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